Skip to content

Commit bdf3fa8

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
2 parents ce64635 + 7ba54b9 commit bdf3fa8

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
@@ -49,7 +49,8 @@ ZEND_API void zend_object_std_dtor(zend_object *object)
4949

5050
if (object->properties) {
5151
if (EXPECTED(!(GC_FLAGS(object->properties) & IS_ARRAY_IMMUTABLE))) {
52-
if (EXPECTED(GC_DELREF(object->properties) == 0)) {
52+
if (EXPECTED(GC_DELREF(object->properties) == 0)
53+
&& EXPECTED(GC_TYPE(object->properties) != IS_NULL)) {
5354
zend_array_destroy(object->properties);
5455
}
5556
}

0 commit comments

Comments
 (0)