Skip to content

Commit 58a0906

Browse files
author
Ilia Alshanetsky
committed
MFH: Fixed bug #34802 (Fixed crash on object instantiation failure).
1 parent 8152c64 commit 58a0906

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_objects_API.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ ZEND_API void zend_objects_store_call_destructors(zend_objects_store *objects TS
5151

5252
if (!objects->object_buckets[i].destructor_called) {
5353
objects->object_buckets[i].destructor_called = 1;
54-
if (obj->dtor) {
54+
if (obj->dtor && obj->object) {
5555
obj->dtor(obj->object, i TSRMLS_CC);
5656
}
5757
}

0 commit comments

Comments
 (0)