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 ed6bc8f commit 2f5faeaCopy full SHA for 2f5faea
ext/opcache/ZendAccelerator.c
@@ -513,7 +513,7 @@ zend_string* ZEND_FASTCALL accel_new_interned_string(zend_string *str)
513
finish:
514
/* Transfer CE_CACHE map ptr slot to new interned string.
515
* Should only happen for permanent interned strings with permanent map_ptr slot. */
516
- if (ZSTR_HAS_CE_CACHE(str)) {
+ if (ZSTR_HAS_CE_CACHE(str) && !ZSTR_HAS_CE_CACHE(s)) {
517
ZEND_ASSERT(GC_FLAGS(str) & IS_STR_PERMANENT);
518
GC_SET_REFCOUNT(s, GC_REFCOUNT(str));
519
GC_ADD_FLAGS(s, IS_STR_CLASS_NAME_MAP_PTR);
0 commit comments