|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-12-13 18:27 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2013-12-13 18:27 UTC] requinix@php.net
[2013-12-14 11:57 UTC] tmop at clix dot pt
[2013-12-15 00:46 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 14:00:01 2025 UTC |
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