]> granicus.if.org Git - php/commitdiff
seemingly a tiny typo error in pcre module.
authorDavid Carlier <devnexen@gmail.com>
Mon, 20 Nov 2017 21:09:28 +0000 (21:09 +0000)
committerAnatol Belski <ab@php.net>
Tue, 21 Nov 2017 11:28:15 +0000 (12:28 +0100)
ext/pcre/php_pcre.c

index fb1737897e92bb626a1cd6fe96c672cd56f75e85..f23202ba1825257943df36026cc39632a862a122 100644 (file)
@@ -2746,7 +2746,7 @@ PHPAPI void  php_pcre_grep_impl(pcre_cache_entry *pce, zval *input, zval *return
 
                /* Perform the match */
 #ifdef HAVE_PCRE_JIT_SUPPORT
-               if (PCRE_G(jit) && (pce->preg_options && PREG_JIT)
+               if (PCRE_G(jit) && (pce->preg_options & PREG_JIT)
                 && no_utf_check) {
                        count = pcre2_jit_match(pce->re, (PCRE2_SPTR)ZSTR_VAL(subject_str), ZSTR_LEN(subject_str), 0,
                                        PCRE2_NO_UTF_CHECK, match_data, mctx);