@@ -889,6 +889,7 @@ static void zend_error_va(int type, const char *file, uint32_t lineno, const cha
889
889
va_list args ;
890
890
va_start (args , format );
891
891
zend_string * message = zend_vstrpprintf (0 , format , args );
892
+ zend_error_notify_all_callbacks (type , file , lineno , message );
892
893
zend_error_cb (type , file , lineno , message );
893
894
zend_string_release (message );
894
895
va_end (args );
@@ -908,10 +909,10 @@ ZEND_API ZEND_COLD void zend_exception_error(zend_object *ex, int severity) /* {
908
909
zend_string * message = zval_get_string (GET_PROPERTY (& exception , ZEND_STR_MESSAGE ));
909
910
zend_string * file = zval_get_string (GET_PROPERTY_SILENT (& exception , ZEND_STR_FILE ));
910
911
zend_long line = zval_get_long (GET_PROPERTY_SILENT (& exception , ZEND_STR_LINE ));
912
+ int type = (ce_exception == zend_ce_parse_error ? E_PARSE : E_COMPILE_ERROR ) | E_DONT_BAIL ;
911
913
912
- zend_error_cb (
913
- (ce_exception == zend_ce_parse_error ? E_PARSE : E_COMPILE_ERROR ) | E_DONT_BAIL ,
914
- ZSTR_VAL (file ), line , message );
914
+ zend_error_notify_all_callbacks (type , ZSTR_VAL (file ), line , message );
915
+ zend_error_cb ( type , ZSTR_VAL (file ), line , message );
915
916
916
917
zend_string_release_ex (file , 0 );
917
918
zend_string_release_ex (message , 0 );
0 commit comments