Posted by bigvortex on November 7, 2009 at 5:54pm
Jump to:
| Project: | Drush |
| Version: | All-Versions-2.1 |
| Component: | Installation |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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
#1
no idea. needs research by someone who is interested in this.
#2
No feedback. Please re-open with more information if needed.
#3
If 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