diff options
author | Dmitry Stogov <dmitry@zend.com> | 2017-10-31 11:07:42 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2017-10-31 11:07:42 +0300 |
commit | 160f6d6267214c6150a6eff43b7675fa217e8729 (patch) | |
tree | c71eaa34edc6de2d377079e75cfdb91f1069840e | |
parent | 2e839246820f36da7eeadf37421457147393cf29 (diff) | |
download | php-git-160f6d6267214c6150a6eff43b7675fa217e8729.tar.gz |
single check is enough
-rw-r--r-- | ext/pcre/php_pcre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index adedcd8d9f..24952beb07 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -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 |