summaryrefslogtreecommitdiff
path: root/Zend/zend_objects_API.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2002-07-07 19:59:37 +0000
committerAndi Gutmans <andi@php.net>2002-07-07 19:59:37 +0000
commit1b5ac1386e5d99d3b6c387058367b7a53b53f2fc (patch)
tree148e14c5d1ac5ae1c6b5b717af1c04a21b3dff22 /Zend/zend_objects_API.c
parent4271895222f782bccd2f2732bc98529de87845fe (diff)
downloadphp-git-1b5ac1386e5d99d3b6c387058367b7a53b53f2fc.tar.gz
- Path which should improve previous fix.
Diffstat (limited to 'Zend/zend_objects_API.c')
-rw-r--r--Zend/zend_objects_API.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Zend/zend_objects_API.c b/Zend/zend_objects_API.c
index 8b2dd624d6..171bc11fc2 100644
--- a/Zend/zend_objects_API.c
+++ b/Zend/zend_objects_API.c
@@ -120,7 +120,10 @@ void zend_objects_store_del_ref(zval *zobject TSRMLS_DC)
if (obj->dtor) {
obj->dtor(obj->object, handle TSRMLS_CC);
}
- ZEND_OBJECTS_STORE_ADD_TO_FREE_LIST();
+ EG(objects_store).object_buckets[handle].valid = 0;
+ if (obj->refcount == 0) {
+ ZEND_OBJECTS_STORE_ADD_TO_FREE_LIST();
+ }
}
}
#if ZEND_DEBUG_OBJECTS