summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2008-02-19 15:55:57 +0000
committerDmitry Stogov <dmitry@php.net>2008-02-19 15:55:57 +0000
commit7dd164dcec3d1a1a01be376cda7c595fcc5ae36f (patch)
tree562060db29e4ff5cb05458a9741b46946b6ba8fc /Zend
parent4dd2425184051a9f562ba0e397d82298360cf6e4 (diff)
downloadphp-git-7dd164dcec3d1a1a01be376cda7c595fcc5ae36f.tar.gz
Fixed GC bug
Diffstat (limited to 'Zend')
-rw-r--r--Zend/zend_gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_gc.c b/Zend/zend_gc.c
index fda73a84a1..3cdf3829d6 100644
--- a/Zend/zend_gc.c
+++ b/Zend/zend_gc.c
@@ -502,7 +502,7 @@ ZEND_API int gc_collect_cycles(TSRMLS_D)
if (Z_TYPE(p->z) == IS_OBJECT) {
if (EG(objects_store).object_buckets &&
EG(objects_store).object_buckets[Z_OBJ_HANDLE(p->z)].valid &&
- EG(objects_store).object_buckets[Z_OBJ_HANDLE(p->z)].bucket.obj.refcount <= 1) {
+ EG(objects_store).object_buckets[Z_OBJ_HANDLE(p->z)].bucket.obj.refcount <= 0) {
if (EXPECTED(Z_OBJ_HANDLER(p->z, get_properties) != NULL)) {
Z_OBJPROP(p->z)->pDestructor = NULL;
}