Skip to content

Commit 12e3e16

Browse files
committed
...
1 parent 501d336 commit 12e3e16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Zend/zend_partial.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,8 @@ ZEND_NAMED_FUNCTION(zend_partial_call_magic)
526526
efree(fci.params);
527527
}
528528

529-
void zend_partial_apply(zval *result, zend_execute_data *execute_data) {
530-
zend_execute_data *call = EX(call);
529+
void zend_partial_apply(zval *result, zend_execute_data *frame) {
530+
zend_execute_data *call = frame->call;
531531
zend_function *function, *prototype = NULL;
532532

533533
ZVAL_OBJ(result, zend_partial_new(zend_ce_closure));
@@ -602,7 +602,7 @@ void zend_partial_apply(zval *result, zend_execute_data *execute_data) {
602602
partial->func.common.fn_flags |= ZEND_ACC_TRAMPOLINE_PERMANENT;
603603
}
604604

605-
if ((EX(opline) && EX(opline)->opcode == ZEND_NEW) &&
605+
if ((frame->opline && frame->opline->opcode == ZEND_NEW) &&
606606
(function->common.fn_flags & ZEND_ACC_CTOR)) {
607607
ZVAL_PTR(&partial->This, Z_OBJCE(call->This));
608608

0 commit comments

Comments
 (0)