From 2f8284ca0ad15cbca98602b09067602e68ba46cc Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Sat, 22 Dec 2001 03:04:14 +0000 Subject: Fix a warning and remove a printf() that slipped in... --- ext/pcre/php_pcre.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/pcre/php_pcre.c') 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) { -- cgit v1.2.1