ZEND_API zend_object_handlers std_object_handlers = {
zend_object_free, /* free_obj */
- zend_object_std_dtor, /* dtor_obj */
+ zend_objects_destroy_object, /* dtor_obj */
zend_objects_clone_obj, /* clone_obj */
zend_std_read_property, /* read_property */
*/
if (EG(objects_store).object_buckets &&
IS_VALID(EG(objects_store).object_buckets[object->handle])) {
- if (object->gc.refcount == 1) {
+ if (object->gc.refcount == 0) {
int failure = 0;
if (!(object->gc.u.v.flags & IS_OBJ_DESTRUCTOR_CALLED)) {
}
}
- if (object->gc.refcount == 1) {
+ if (object->gc.refcount == 0) {
zend_uint handle = object->handle;
//??? GC_REMOVE_ZOBJ_FROM_BUFFER(obj);