Skip to content

Commit 7816275

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Add missing refcount increment
2 parents 4f1d538 + d3237b5 commit 7816275

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend_closures.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ static int zend_create_closure_from_callable(zval *return_value, zval *callable,
287287
if (fcc.object && fcc.object->ce == zend_ce_closure
288288
&& zend_string_equals_literal(mptr->common.function_name, "__invoke")) {
289289
ZVAL_OBJ(return_value, fcc.object);
290+
GC_ADDREF(fcc.object);
290291
zend_free_trampoline(mptr);
291292
return SUCCESS;
292293
}

0 commit comments

Comments
 (0)