Closed fritzmg closed 3 years ago
if you don't have pdo_mysql
, wouldn't that mean Contao can't be installed because that should be a requirement of DBAL or someone? Isn't that error rather specified to an old version of PDO?
No, not of DBAL. Because it is an abstraction :D So why would it require pdo_mysql
if you decide to use sqlite?
It should be a requirement of contao/core-bundle
indeed but the check should be added to the Manager nevertheless (Composer would just install an old version of Contao).
We could add the PHP extension requirement to contao/conflicts
additionally.
We shouldn't add that as discussed in https://github.com/contao/contao/pull/2459
If you install Contao without the
pdo_mysql
PHP extension being enabled/present, the following error will occur:Thus the system check should check for PDO support in PHP.
See also https://community.contao.org/de/showthread.php?76224-Installationsfehler-Konstante-PDO-MYSQL_ATTR_MULTI_STATEMENTS