]> granicus.if.org Git - php/commitdiff
Fix a warning and remove a printf() that slipped in...
authorZeev Suraski <zeev@php.net>
Sat, 22 Dec 2001 03:04:14 +0000 (03:04 +0000)
committerZeev Suraski <zeev@php.net>
Sat, 22 Dec 2001 03:04:14 +0000 (03:04 +0000)
ext/pcre/php_pcre.c

index bd923d0ec702a0a4e5a1e77246cb5f88c6e69bde..47c4f082bda7f0536c482d716d3cfc289a28628d 100644 (file)
@@ -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) {