Skip to content

Commit 05f8c04

Browse files
author
Andi Gutmans
committed
- Fix problem when return_value's is_ref/refcount is overwritten by the
internal function.
1 parent 419c68f commit 05f8c04

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Zend/zend_execute.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,6 +1487,8 @@ binary_assign_op_addr: {
14871487
if (object.ptr) {
14881488
object.ptr->refcount--;
14891489
}
1490+
Ts[opline->result.u.var].var.ptr->is_ref = 0;
1491+
Ts[opline->result.u.var].var.ptr->refcount = 1;
14901492
} else if (function_state.function->type==ZEND_USER_FUNCTION) {
14911493
HashTable *calling_symbol_table;
14921494

0 commit comments

Comments
 (0)