Skip to content

Commit 7ba54b9

Browse files
committed
Merge branch 'PHP-7.2' into PHP-7.3
2 parents 4cd563d + 18f2918 commit 7ba54b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Zend/zend_objects.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ ZEND_API void zend_object_std_dtor(zend_object *object)
4343

4444
if (object->properties) {
4545
if (EXPECTED(!(GC_FLAGS(object->properties) & IS_ARRAY_IMMUTABLE))) {
46-
if (EXPECTED(GC_DELREF(object->properties) == 0)) {
46+
if (EXPECTED(GC_DELREF(object->properties) == 0)
47+
&& EXPECTED(GC_TYPE(object->properties) != IS_NULL)) {
4748
zend_array_destroy(object->properties);
4849
}
4950
}

0 commit comments

Comments
 (0)