On a Ubuntu 9.04 system when I run: "drush status" in a working drupal directory I get the following error:
Fatal error: Cannot clone object of class PDO due to 'zend.ze1_compatibility_mode' in /usr/local/lib/drush/includes/environment.inc on line 835
Drush command could not be completed. [error]
I have set zend.ze1_compatibility_mode to on and off but get the same error each time. The line that it is complaining about is:
$db = new PDO($constr, $creds['user'], $creds['pass']);
I verified the parameters and to the best of my knowledge all they are correct.
Comments
Comment #1
moshe weitzman commentedno idea. needs research by someone who is interested in this.
Comment #2
greg.1.anderson commentedNo feedback. Please re-open with more information if needed.
Comment #3
codewaggle commentedIf you're using PHP 5.3.x you can try removing the zend.ze1_compatibility_mode line from the .ini file, it is no longer a valid directive.
From the PHP manual:
http://php.net/manual/en/ini.core.php
Name
zend.ze1_compatibility_mode
Default
"0"
Changeable
PHP_INI_ALL
Changelog
Available since PHP 5.0.0. Removed in PHP 5.3.0