mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
- Attempt to fix bug #27535
This commit is contained in:
parent
68f1108b53
commit
aa472500e1
1 changed files with 2 additions and 1 deletions
|
@ -65,6 +65,7 @@ ZEND_API void zend_objects_store_free_object_storage(zend_objects_store *objects
|
|||
if (objects->object_buckets[i].valid) {
|
||||
struct _store_object *obj = &objects->object_buckets[i].bucket.obj;
|
||||
|
||||
objects->object_buckets[i].valid = 0;
|
||||
if (obj->free_storage) {
|
||||
obj->free_storage(obj->object TSRMLS_CC);
|
||||
}
|
||||
|
@ -140,7 +141,7 @@ ZEND_API void zend_objects_store_del_ref(zval *zobject TSRMLS_DC)
|
|||
}
|
||||
}
|
||||
if (obj->refcount == 1) {
|
||||
if (obj->free_storage) {
|
||||
if (obj->free_storage && EG(objects_store).object_buckets[handle].valid) {
|
||||
obj->free_storage(obj->object TSRMLS_CC);
|
||||
}
|
||||
ZEND_OBJECTS_STORE_ADD_TO_FREE_LIST();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue