Skip to content

Commit 2e15b92

Browse files
committed
Promote warnings to exceptions in register_tick_function() function
1 parent 4083631 commit 2e15b92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/standard/basic_functions.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3240,15 +3240,15 @@ static void user_tick_function_call(user_tick_function_entry *tick_fe) /* {{{ */
32403240
zval *obj, *method;
32413241

32423242
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));
32443244
} else if ( Z_TYPE_P(function) == IS_ARRAY
32453245
&& (obj = zend_hash_index_find(Z_ARRVAL_P(function), 0)) != NULL
32463246
&& (method = zend_hash_index_find(Z_ARRVAL_P(function), 1)) != NULL
32473247
&& Z_TYPE_P(obj) == IS_OBJECT
32483248
&& 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));
32503250
} else {
3251-
php_error_docref(NULL, E_WARNING, "Unable to call tick function");
3251+
zend_value_error("Unable to call tick function");
32523252
}
32533253
}
32543254

0 commit comments

Comments
 (0)