@@ -2040,7 +2040,7 @@ PHP_FUNCTION(constant)
2040
2040
}
2041
2041
} else {
2042
2042
if (!EG (exception )) {
2043
- php_error_docref ( NULL , E_WARNING , "Couldn't find constant %s" , ZSTR_VAL (const_name ));
2043
+ zend_value_error ( "Couldn't find constant %s" , ZSTR_VAL (const_name ));
2044
2044
}
2045
2045
RETURN_NULL ();
2046
2046
}
@@ -3202,7 +3202,7 @@ static int user_shutdown_function_call(zval *zv) /* {{{ */
3202
3202
if (!zend_is_callable (& shutdown_function_entry -> arguments [0 ], 0 , NULL )) {
3203
3203
zend_string * function_name
3204
3204
= zend_get_callable_name (& shutdown_function_entry -> arguments [0 ]);
3205
- php_error ( E_WARNING , "(Registered shutdown functions) Unable to call %s() - function does not exist" , ZSTR_VAL (function_name ));
3205
+ zend_value_error ( "(Registered shutdown functions) Unable to call %s() - function does not exist" , ZSTR_VAL (function_name ));
3206
3206
zend_string_release_ex (function_name , 0 );
3207
3207
return 0 ;
3208
3208
}
@@ -3240,15 +3240,15 @@ static void user_tick_function_call(user_tick_function_entry *tick_fe) /* {{{ */
3240
3240
zval * obj , * method ;
3241
3241
3242
3242
if (Z_TYPE_P (function ) == IS_STRING ) {
3243
- php_error_docref ( NULL , E_WARNING , "Unable to call %s() - function does not exist" , Z_STRVAL_P (function ));
3243
+ zend_value_error ( "Unable to call %s() - function does not exist" , Z_STRVAL_P (function ));
3244
3244
} else if ( Z_TYPE_P (function ) == IS_ARRAY
3245
3245
&& (obj = zend_hash_index_find (Z_ARRVAL_P (function ), 0 )) != NULL
3246
3246
&& (method = zend_hash_index_find (Z_ARRVAL_P (function ), 1 )) != NULL
3247
3247
&& Z_TYPE_P (obj ) == IS_OBJECT
3248
3248
&& Z_TYPE_P (method ) == IS_STRING ) {
3249
- php_error_docref ( NULL , E_WARNING , "Unable to call %s::%s() - function does not exist" , ZSTR_VAL (Z_OBJCE_P (obj )-> name ), Z_STRVAL_P (method ));
3249
+ zend_value_error ( "Unable to call %s::%s() - function does not exist" , ZSTR_VAL (Z_OBJCE_P (obj )-> name ), Z_STRVAL_P (method ));
3250
3250
} else {
3251
- php_error_docref ( NULL , E_WARNING , "Unable to call tick function" );
3251
+ zend_value_error ( "Unable to call tick function" );
3252
3252
}
3253
3253
}
3254
3254
0 commit comments