From: Ilia Alshanetsky Date: Mon, 10 Oct 2005 14:30:05 +0000 (+0000) Subject: Fixed bug #34802 (Fixed crash on object instantiation failure). X-Git-Tag: RELEASE_0_9_1~162 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f14cf0f7d83765dcbd619c2ab8b949de54208e7e;p=php Fixed bug #34802 (Fixed crash on object instantiation failure). --- diff --git a/Zend/zend_objects_API.c b/Zend/zend_objects_API.c index 74caaba5fa..6f929b0e10 100644 --- a/Zend/zend_objects_API.c +++ b/Zend/zend_objects_API.c @@ -51,7 +51,7 @@ ZEND_API void zend_objects_store_call_destructors(zend_objects_store *objects TS if (!objects->object_buckets[i].destructor_called) { objects->object_buckets[i].destructor_called = 1; - if (obj->dtor) { + if (obj->dtor && obj->object) { obj->dtor(obj->object, i TSRMLS_CC); } }