Skip to content

Commit

Permalink
Move zend_deprecated_function call after SAVE_OPLINE()
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed Apr 14, 2024
1 parent 998a22b commit 8911162
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Zend/zend_vm_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -4048,13 +4048,13 @@ ZEND_VM_HOT_HANDLER(130, ZEND_DO_UCALL, ANY, ANY, SPEC(RETVAL,OBSERVER))
zend_function *fbc = call->func;
zval *ret;

SAVE_OPLINE();
EX(call) = call->prev_execute_data;

if (UNEXPECTED((fbc->common.fn_flags & ZEND_ACC_DEPRECATED) != 0)) {
zend_deprecated_function(fbc);
}

SAVE_OPLINE();
EX(call) = call->prev_execute_data;

ret = NULL;
if (RETURN_VALUE_USED(opline)) {
ret = EX_VAR(opline->result.var);
Expand Down
18 changes: 9 additions & 9 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 8911162

Please sign in to comment.