summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2017-11-20 21:09:28 +0000
committerAnatol Belski <ab@php.net>2017-11-21 12:28:15 +0100
commitd006270040b88c6ec142bd66c2b0e50656386b03 (patch)
treef3db947ff8e43c48ad734dc56094facbe81abcbf /ext/pcre/php_pcre.c
parentefa4d8d3acead0cf21315f57ac2da1a08efa86ab (diff)
downloadphp-git-d006270040b88c6ec142bd66c2b0e50656386b03.tar.gz
seemingly a tiny typo error in pcre module.
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index fb1737897e..f23202ba18 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -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);