Skip to content

Commit c90cce3

Browse files
committed
Promote warnings to exceptions in register_tick_function() function
1 parent 30f05c1 commit c90cce3

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
@@ -2878,15 +2878,15 @@ static void user_tick_function_call(user_tick_function_entry *tick_fe) /* {{{ */
28782878
zval *obj, *method;
28792879

28802880
if (Z_TYPE_P(function) == IS_STRING) {
2881-
php_error_docref(NULL, E_WARNING, "Unable to call %s() - function does not exist", Z_STRVAL_P(function));
2881+
zend_value_error("Unable to call %s() - function does not exist", Z_STRVAL_P(function));
28822882
} else if ( Z_TYPE_P(function) == IS_ARRAY
28832883
&& (obj = zend_hash_index_find(Z_ARRVAL_P(function), 0)) != NULL
28842884
&& (method = zend_hash_index_find(Z_ARRVAL_P(function), 1)) != NULL
28852885
&& Z_TYPE_P(obj) == IS_OBJECT
28862886
&& Z_TYPE_P(method) == IS_STRING) {
2887-
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));
2887+
zend_value_error("Unable to call %s::%s() - function does not exist", ZSTR_VAL(Z_OBJCE_P(obj)->name), Z_STRVAL_P(method));
28882888
} else {
2889-
php_error_docref(NULL, E_WARNING, "Unable to call tick function");
2889+
zend_value_error("Unable to call tick function");
28902890
}
28912891
}
28922892

0 commit comments

Comments
 (0)