diff options
author | Zeev Suraski <zeev@php.net> | 2001-12-22 03:04:14 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2001-12-22 03:04:14 +0000 |
commit | 2f8284ca0ad15cbca98602b09067602e68ba46cc (patch) | |
tree | b01b30ea84a24fb2f9d28016d3a789992e882975 /ext/pcre | |
parent | f6c98834ea39ea189a02d5cff34800bcc0604505 (diff) | |
download | php-git-2f8284ca0ad15cbca98602b09067602e68ba46cc.tar.gz |
Fix a warning and remove a printf() that slipped in...
Diffstat (limited to 'ext/pcre')
-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) { |