Skip to content

Commit f912445

Browse files
committed
Add missed mutability check
1 parent c45f195 commit f912445

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
@@ -307,7 +307,7 @@ void shutdown_executor(void) /* {{{ */
307307
if (op_array->static_variables) {
308308
HashTable *ht = ZEND_MAP_PTR_GET(op_array->static_variables_ptr);
309309
if (ht) {
310-
if (GC_DELREF(ht) == 0) {
310+
if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && GC_DELREF(ht) == 0) {
311311
zend_array_destroy(ht);
312312
}
313313
ZEND_MAP_PTR_SET(op_array->static_variables_ptr, NULL);

0 commit comments

Comments
 (0)