Skip to content

Commit ad66137

Browse files
committed
Merge branch 'PHP-7.4'
2 parents 0201a85 + f912445 commit ad66137

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_execute_API.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ void shutdown_executor(void) /* {{{ */
305305
if (op_array->static_variables) {
306306
HashTable *ht = ZEND_MAP_PTR_GET(op_array->static_variables_ptr);
307307
if (ht) {
308-
if (GC_DELREF(ht) == 0) {
308+
if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && GC_DELREF(ht) == 0) {
309309
zend_array_destroy(ht);
310310
}
311311
ZEND_MAP_PTR_SET(op_array->static_variables_ptr, NULL);

0 commit comments

Comments
 (0)