We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3fdf57 commit 18f2918Copy full SHA for 18f2918
Zend/zend_objects.c
@@ -46,7 +46,8 @@ ZEND_API void zend_object_std_dtor(zend_object *object)
46
47
if (object->properties) {
48
if (EXPECTED(!(GC_FLAGS(object->properties) & IS_ARRAY_IMMUTABLE))) {
49
- if (EXPECTED(--GC_REFCOUNT(object->properties) == 0)) {
+ if (EXPECTED(--GC_REFCOUNT(object->properties) == 0)
50
+ && EXPECTED(GC_TYPE(object->properties) != IS_NULL)) {
51
zend_array_destroy(object->properties);
52
}
53
0 commit comments