pcreposix.c change?
| From: | Andrey Zmievski | Date: | Mon, 16 Aug 1999 13:24:39 +0000 |
| Subject: | pcreposix.c change? | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-3448@lists.php.net to get a copy of this message | ||
I've notited verdy_p made this change to ext/pcre/pcrelib/pcreposix.c:
--- pcreposix.c 1999/05/26 21:47:57 1.1
+++ pcreposix.c 1999/08/15 23:52:37 1.2
@@ -223,8 +223,10 @@
preg->re_erroffset = (size_t)(-1); /* Only has meaning after compile */
-rc = pcre_exec(preg->re_pcre, NULL, string, (int)strlen(string), options,
- (int *)pmatch, nmatch * 2);
+rc = pcre_exec(preg->re_pcre, NULL, string, (int)strlen(string),
+ string, // const char *strbeg (added for vi-like
'g' replace flag)
+ options, (int *)pmatch, nmatch * 2,
+ 0); // int minlen (added for vi-like 'g' replace
flag)
if (rc == 0) return 0; /* All pmatch were filled in */
What was that for exactly? pcreposix is not even used by PHP and I intend to
remove dependence on a bundled library anyway as soon as I get a chance.
-Andrey
* Proximity bug: when the code crashes in front of important visitors. *