Skip to content

Commit

Permalink
Merge check
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsdos committed Nov 14, 2024
1 parent bdd93e3 commit 2c3531d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 32 deletions.
12 changes: 4 additions & 8 deletions Zend/zend_vm_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -3806,13 +3806,6 @@ ZEND_VM_HANDLER(118, ZEND_INIT_USER_CALL, CONST, CONST|TMPVAR|CV, NUM)
SAVE_OPLINE();
function_name = GET_OP2_ZVAL_PTR(BP_VAR_R);
if (zend_is_callable_ex(function_name, NULL, 0, NULL, &fcc, &error)) {
/* Deprecation can be emitted from zend_is_callable_ex(), which can
* invoke a user error handler and throw an exception. */
if (UNEXPECTED(EG(exception))) {
FREE_OP2();
HANDLE_EXCEPTION();
}

ZEND_ASSERT(!error);
func = fcc.function_handler;
object_or_called_scope = fcc.called_scope;
Expand All @@ -3834,7 +3827,10 @@ ZEND_VM_HANDLER(118, ZEND_INIT_USER_CALL, CONST, CONST|TMPVAR|CV, NUM)
}

FREE_OP2();
if ((OP2_TYPE & (IS_TMP_VAR|IS_VAR)) && UNEXPECTED(EG(exception))) {
/* Deprecation can be emitted from zend_is_callable_ex(), which can
* invoke a user error handler and throw an exception; so we cannot
* rely on OP2_TYPE. */
if (UNEXPECTED(EG(exception))) {
if (call_info & ZEND_CALL_CLOSURE) {
zend_object_release(ZEND_CLOSURE_OBJECT(func));
} else if (call_info & ZEND_CALL_RELEASE_THIS) {
Expand Down
36 changes: 12 additions & 24 deletions Zend/zend_vm_execute.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2c3531d

Please sign in to comment.