简体   繁体   中英

Problem with magic_quotes_gpc in PHP symfony

I am using Symfony 1.4 and ORM as Propel, to create my project. Last time i have upgraded my server's PHP version from 5.2 to 5.3, from that time i am getting the error as

PHP Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0

PHP Fatal error: Class 'PDO' not found in /usr/local/lib/php/symfony/plugins/sfPropelPlugin/lib/vendor/propel/util/PropelPDO.php on line 42

PHP Warning: Module 'PDO' already loaded in Unknown on line 0

PHP Warning: Module 'pdo_sqlite' already loaded in Unknown on line 0

PHP Warning: Module 'SQLite' already loaded in Unknown on line 0

Is there any thing i can do in code, or turn off 'magic_quotes_gpc' in php.ini? please help!

First error can be just silenced by disabling E_DEPRECATED in error_reporting() .

(Note: in general, silencing error messages is not a good way of dealing with errors - proper way of dealing with this error is to upgrade your scipts to version that supports PHP 5.3)

However you have four more much more serious errors, which I'm not really sure about.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM