Skip to content

Commit

Permalink
Fixed GC bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Feb 19, 2008
1 parent 7b06258 commit 91a0a95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Zend/zend_gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 91a0a95

Please sign in to comment.