Skip to content

Commit

Permalink
Fixed call to __destruct() for objects of classes delivered from inte…
Browse files Browse the repository at this point in the history
…rnal ones those use zend_objects_store_put(obj, NULL, ...
  • Loading branch information
dstogov committed Nov 15, 2005
1 parent 8c100e6 commit 5519008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Zend/zend_objects_API.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ ZEND_API zend_object_handle zend_objects_store_put(void *object, zend_objects_st

obj->refcount = 1;
obj->object = object;
obj->dtor = dtor;
obj->dtor = dtor?dtor:(zend_objects_store_dtor_t)zend_objects_destroy_object;
obj->free_storage = free_storage;

obj->clone = clone;
Expand Down

0 comments on commit 5519008

Please sign in to comment.