cvs: php4 /ext/pcre php_pcre.c
| From: | Zeev Suraski | Date: | Sat, 22 Dec 2001 03:04:14 +0000 |
| Subject: | cvs: php4 /ext/pcre php_pcre.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-8754@lists.php.net to get a copy of this message | ||
zeev Fri Dec 21 22:04:14 2001 EDT
Modified files:
/php4/ext/pcre php_pcre.c
Log:
Fix a warning and remove a printf() that slipped in...
Index: php4/ext/pcre/php_pcre.c
diff -u php4/ext/pcre/php_pcre.c:1.114 php4/ext/pcre/php_pcre.c:1.115
--- php4/ext/pcre/php_pcre.c:1.114 Tue Dec 18 14:17:57 2001
+++ php4/ext/pcre/php_pcre.c Fri Dec 21 22:04:14 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_pcre.c,v 1.114 2001/12/18 19:17:57 andrei Exp $ */
+/* $Id: php_pcre.c,v 1.115 2001/12/22 03:04:14 zeev Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1315,9 +1315,8 @@
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) {