mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
Fixed possible GC failure because of EG(object_store).object_buckets reallocation
This commit is contained in:
parent
03c018d34e
commit
5a00207c6d
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue