Skip to content

Commit 2c6ee5d

Browse files
committed
Fix argument unpacking
1 parent e27eca9 commit 2c6ee5d

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
@@ -1690,6 +1690,7 @@ static zval *zend_vm_stack_push_args_with_copy(int count TSRMLS_DC) /* {{{ */
16901690
ZVAL_LONG(EG(argument_stack)->top, count);
16911691
while (count-- > 0) {
16921692
zval *data = --p->top;
1693+
ZVAL_COPY_VALUE(ZEND_VM_STACK_ELEMETS(EG(argument_stack)) + count, data);
16931694

16941695
if (UNEXPECTED(p->top == ZEND_VM_STACK_ELEMETS(p))) {
16951696
zend_vm_stack r = p;
@@ -1698,7 +1699,6 @@ static zval *zend_vm_stack_push_args_with_copy(int count TSRMLS_DC) /* {{{ */
16981699
p = p->prev;
16991700
efree(r);
17001701
}
1701-
ZVAL_COPY_VALUE(ZEND_VM_STACK_ELEMETS(EG(argument_stack)) + count, data);
17021702
}
17031703
return EG(argument_stack)->top++;
17041704
}

0 commit comments

Comments
 (0)