Bug #66291 [NEW]: Problem with error_reporting

From: Date: Fri, 13 Dec 2013 17:46:28 +0000
Subject: Bug #66291 [NEW]: Problem with error_reporting
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183319@lists.php.net to get a copy of this message
From: tmop at clix dot pt Operating system: Ubuntu PHP version: 5.5.7 Package: Unknown/Other Function Bug Type: Bug Bug description:Problem with error_reporting Description: ------------ I'm using this config on php.ini error_reporting = E_ALL & ~E_STRICT & ~E_DEPRECATED I convert errors to exceptions and i have this. set_error_handler('bobErrorHandler'); Even with deprecated disabled i get: Exception_Error | 17782b6ec028fc3bcc578ccdadb04b70 | E_DEPRECATED preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/www/HOTFIX_Backend_Sprint_71/library/Zend/Filter/PregReplace.php (171) I've managed to remove the error with this: set_error_handler('bobErrorHandler', ini_get('error_reporting')); but when i call: $error = error_get_last(); i still get: array(4) { ["type"] => int(8192) ["message"] => string(80) "preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead" ["file"] => string(69) "/var/www/HOTFIX_Backend_Sprint_71/library/Zend/Filter/PregReplace.php" ["line"] => int(171) } ' Expected result: ---------------- No deprecated stuff when its disabled -- Edit bug report at https://bugs.php.net/bug.php?id=66291&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66291&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66291&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66291&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66291&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66291&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66291&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66291&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66291&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66291&r=support Expected behavior: https://bugs.php.net/fix.php?id=66291&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66291&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66291&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66291&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66291&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66291&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66291&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66291&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66291&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66291&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66291&r=mysqlcfg

« previous php.bugs (#183319) next »