mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Fixed possible GC failure because of EG(object_store).object_buckets reallocation
This commit is contained in:
parent
03c018d34e
commit
5a00207c6d
@ -203,6 +203,7 @@ ZEND_API void gc_zobj_possible_root(zval *zv TSRMLS_DC)
|
||||
zv->refcount__gc++;
|
||||
gc_collect_cycles(TSRMLS_C);
|
||||
zv->refcount__gc--;
|
||||
obj = &EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(zv)].bucket.obj;
|
||||
GC_SET_PURPLE(obj->buffered);
|
||||
newRoot = GC_G(unused);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user