maximebf / atomik

Micro framework for PHP 5.3+ [UNMAINTAINED]
MIT License
46 stars 18 forks source link

Unnecessary dependancy on PDO mysql #34

Open tobarja opened 10 years ago

tobarja commented 10 years ago

This commit: https://github.com/maximebf/atomik/commit/a1304ad8152575d8fd1faaf609a8d1671fc7ec08 uses a constant that is only defined on machines with the PDO mysql extension compiled in.

Commenting out the MYSQL_ATTR_INIT_COMMAND line fixes it in my vagrant image.

If this setting is necessary, perhaps a method like this one should be used: http://php.net/manual/en/pdo.constants.php#pdo.constants.attr-driver-name