Skip to content

Commit

Permalink
Use E_ERROR to report arginfo/zpp mismatch
Browse files Browse the repository at this point in the history
When E_CORE_ERROR is used, we don't get correct file/line information.
  • Loading branch information
nikic committed Feb 9, 2021
1 parent f5768ea commit d4aff25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Zend/zend_execute.c
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ static zend_always_inline zend_bool zend_internal_call_should_throw(zend_functio

static ZEND_COLD void zend_internal_call_arginfo_violation(zend_function *fbc)
{
zend_error(E_CORE_ERROR, "Arginfo / zpp mismatch during call of %s%s%s()",
zend_error(E_ERROR, "Arginfo / zpp mismatch during call of %s%s%s()",
fbc->common.scope ? ZSTR_VAL(fbc->common.scope->name) : "",
fbc->common.scope ? "::" : "",
ZSTR_VAL(fbc->common.function_name));
Expand Down

0 comments on commit d4aff25

Please sign in to comment.