From: Nikita Popov Date: Wed, 9 Apr 2014 21:54:03 +0000 (+0200) Subject: IS_INTERNED is not always 0 in ZTS X-Git-Tag: POST_PHPNG_MERGE~412^2~130 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a6be32f59a0f0ae7088f5afc1e354e185a481130;p=php IS_INTERNED is not always 0 in ZTS The current implementation chooses to intern "" in ZTS. Either that should be removed or IS_INTERNED needs to actually check the flag. --- diff --git a/Zend/zend_string.h b/Zend/zend_string.h index 3072afd322..6ff35fb22c 100644 --- a/Zend/zend_string.h +++ b/Zend/zend_string.h @@ -35,11 +35,7 @@ void zend_interned_strings_dtor(TSRMLS_D); END_EXTERN_C() -#ifndef ZTS -# define IS_INTERNED(s) (GC_FLAGS(s) & IS_STR_INTERNED) -#else -# define IS_INTERNED(s) 0 -#endif +#define IS_INTERNED(s) (GC_FLAGS(s) & IS_STR_INTERNED) #define STR_HASH_VAL(s) zend_str_hash_val(s) #define STR_FORGET_HASH_VAL(s) zend_str_forget_hash_val(s)