Skip to content

Commit 06fe9ff

Browse files
committed
Fix use-of-undefined in zend_fiber_object_gc of ex->call
ex->call is only set for user calls, we shouldn't access it here. zend_unfinished_execution_gc_ex wouldn't actually use it for internal calls, so it didn't cause any serious issues. Closes GH-11208
1 parent b71a961 commit 06fe9ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_fibers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ static HashTable *zend_fiber_object_gc(zend_object *object, zval **table, int *n
670670
HashTable *lastSymTable = NULL;
671671
zend_execute_data *ex = fiber->execute_data;
672672
for (; ex; ex = ex->prev_execute_data) {
673-
HashTable *symTable = zend_unfinished_execution_gc_ex(ex, ex->call, buf, false);
673+
HashTable *symTable = zend_unfinished_execution_gc_ex(ex, ZEND_USER_CODE(ex->func->type) ? ex->call : NULL, buf, false);
674674
if (symTable) {
675675
if (lastSymTable) {
676676
zval *val;

0 commit comments

Comments
 (0)