1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 01:32:22 +01:00

Mark all strings stored in SHM as IS_INTERNED to avoid refcounting

This commit is contained in:
Dmitry Stogov
2014-05-06 12:41:27 +04:00
parent 4187be99fe
commit 0ea615fd10

View File

@@ -43,6 +43,7 @@
new_str = _zend_shared_memdup((void*)str, _STR_HEADER_SIZE + (str)->len + 1, 0 TSRMLS_CC); \
STR_RELEASE(str); \
str = new_str; \
GC_FLAGS(str) = IS_STR_INTERNED | IS_STR_PERMANENT; \
} \
} while (0)
# define zend_accel_memdup_string(str) \