Skip to content

Commit 99d21d5

Browse files
committed
this is odd
1 parent 369104f commit 99d21d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Zend/zend_partial.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,8 @@ void zend_partial_apply(zval *result, uint32_t info, zend_execute_data *call) {
500500
Z_TYPE_INFO(partial->This) |= Z_TYPE_INFO(parent->This);
501501

502502
partial->type = parent->type;
503+
504+
GC_ADDREF((zend_refcounted*)parent);
503505
}
504506

505507
memcpy(partial->argv, parent->argv, parent->argc * sizeof(zval));

0 commit comments

Comments
 (0)