]> granicus.if.org Git - php/commitdiff
single check is enough
authorDmitry Stogov <dmitry@zend.com>
Tue, 31 Oct 2017 08:07:42 +0000 (11:07 +0300)
committerDmitry Stogov <dmitry@zend.com>
Tue, 31 Oct 2017 08:07:42 +0000 (11:07 +0300)
ext/pcre/php_pcre.c

index adedcd8d9fb5cc34ded6be6f291b31050fdb0413..24952beb07a696f223db0c13bdc7f8ec811bbc98 100644 (file)
@@ -591,7 +591,7 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex)
         * as hash keys especually for this table.
         * See bug #63180
         */
-       if (!ZSTR_IS_INTERNED(key) || !(GC_FLAGS(key) & IS_STR_PERMANENT)) {
+       if (!(GC_FLAGS(key) & IS_STR_PERMANENT)) {
                pce = zend_hash_str_add_new_mem(&PCRE_G(pcre_cache),
                                ZSTR_VAL(key), ZSTR_LEN(key), &new_entry, sizeof(pcre_cache_entry));
 #if HAVE_SETLOCALE