]> granicus.if.org Git - php/commitdiff
Use type instead of constant
authorMarcus Boerger <helly@php.net>
Thu, 11 Sep 2003 10:26:47 +0000 (10:26 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 11 Sep 2003 10:26:47 +0000 (10:26 +0000)
Zend/zend_default_classes.c
Zend/zend_exceptions.c

index 87131ff1cd29315865c9209bb94ee3fe81538604..8f70d107ba676c9eef9cefad86e4a40d7df57858 100644 (file)
@@ -465,7 +465,7 @@ static void zend_error_va(int type, const char *file, uint lineno, const char *f
        va_list args;
        
        va_start(args, format);
-       zend_error_cb(E_ERROR, file, lineno, format, args);
+       zend_error_cb(type, file, lineno, format, args);
        va_end(args);
 }
 
index 87131ff1cd29315865c9209bb94ee3fe81538604..8f70d107ba676c9eef9cefad86e4a40d7df57858 100644 (file)
@@ -465,7 +465,7 @@ static void zend_error_va(int type, const char *file, uint lineno, const char *f
        va_list args;
        
        va_start(args, format);
-       zend_error_cb(E_ERROR, file, lineno, format, args);
+       zend_error_cb(type, file, lineno, format, args);
        va_end(args);
 }