Skip to content

Commit b06c573

Browse files
committed
Minor fixes:
missing zval_copy_ctor() messed up AiCount fix
1 parent 4213b5d commit b06c573

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Zend/zend_compile.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,6 +1438,7 @@ void do_list_end(znode *result, znode *expr CLS_DC)
14381438
le = CG(list_llist).head;
14391439
while (le) {
14401440
do_assign(result, &((list_llist_element *) le->data)->var, &((list_llist_element *) le->data)->value CLS_CC);
1441+
EG(active_op_array)->opcodes[EG(active_op_array)->last-1].result.u.EA.type |= EXT_TYPE_UNUSED;
14411442
le = le->next;
14421443
}
14431444
zend_llist_destroy(&CG(dimension_llist));

Zend/zend_execute.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,6 +1453,7 @@ binary_assign_op_addr: {
14531453
**varptr_ptr = *varptr;
14541454
varptr = *varptr_ptr;
14551455
varptr->refcount = 1;
1456+
zval_copy_ctor(varptr);
14561457
}
14571458
varptr->is_ref = 1;
14581459
/* at the end of this code refcount is always 1 */

0 commit comments

Comments
 (0)