Skip to content

Commit d4aff25

Browse files
committed
Use E_ERROR to report arginfo/zpp mismatch
When E_CORE_ERROR is used, we don't get correct file/line information.
1 parent f5768ea commit d4aff25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_execute.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ static zend_always_inline zend_bool zend_internal_call_should_throw(zend_functio
11441144

11451145
static ZEND_COLD void zend_internal_call_arginfo_violation(zend_function *fbc)
11461146
{
1147-
zend_error(E_CORE_ERROR, "Arginfo / zpp mismatch during call of %s%s%s()",
1147+
zend_error(E_ERROR, "Arginfo / zpp mismatch during call of %s%s%s()",
11481148
fbc->common.scope ? ZSTR_VAL(fbc->common.scope->name) : "",
11491149
fbc->common.scope ? "::" : "",
11501150
ZSTR_VAL(fbc->common.function_name));

0 commit comments

Comments
 (0)