]> granicus.if.org Git - php/commitdiff
Nice patch Christian, but it wasn't at all enabled? :)
authorZeev Suraski <zeev@php.net>
Thu, 15 Jan 2004 16:47:32 +0000 (16:47 +0000)
committerZeev Suraski <zeev@php.net>
Thu, 15 Jan 2004 16:47:32 +0000 (16:47 +0000)
Fix bug #26883

Zend/zend.c

index 44cbbb55c0fc5275b34db0b88cdb77885312fff1..9d4bcc283b1287c476792fa2a2e98dabe84e7216 100644 (file)
@@ -909,7 +909,8 @@ ZEND_API void zend_error(int type, const char *format, ...)
        va_start(args, format);
 
        /* if we don't have a user defined error handler */
-       if (!EG(user_error_handler)) {
+       if (!EG(user_error_handler)
+               || !(EG(user_error_handler_error_reporting) & type)) {
                zend_error_cb(type, error_filename, error_lineno, format, args);
        } else switch (type) {
                case E_ERROR: