diff options
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index bd923d0ec7..47c4f082bd 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -1315,9 +1315,8 @@ PHP_FUNCTION(preg_grep) if (ZEND_NUM_ARGS() > 2) { convert_to_long_ex(flags); - invert = Z_LVAL_PP(flags) & PREG_GREP_INVERT; + invert = (Z_LVAL_PP(flags) & PREG_GREP_INVERT) ? 1 : 0; } - printf("invert: %d\n", invert); /* Compile regex or get it from cache. */ if ((re = pcre_get_compiled_regex(Z_STRVAL_PP(regex), extra, &preg_options)) == NULL) { |