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.
2 parents bf98023 + afba201 commit b55816eCopy full SHA for b55816e
ext/opcache/zend_persist.c
@@ -38,7 +38,9 @@
38
#define zend_set_str_gc_flags(str) do { \
39
GC_SET_REFCOUNT(str, 2); \
40
uint32_t flags = GC_STRING | (ZSTR_IS_VALID_UTF8(str) ? IS_STR_VALID_UTF8 : 0); \
41
- if (file_cache_only) { \
+ if (file_cache_only \
42
+ || (ZCG(current_persistent_script) && ZCG(current_persistent_script)->corrupted)) { \
43
+ GC_TYPE_INFO(str) = GC_STRING | (IS_STR_INTERNED << GC_FLAGS_SHIFT); \
44
flags |= (IS_STR_INTERNED << GC_FLAGS_SHIFT); \
45
} else { \
46
flags |= ((IS_STR_INTERNED | IS_STR_PERMANENT) << GC_FLAGS_SHIFT); \
0 commit comments