andrei Thu Oct 5 18:23:21 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/standard string.c
Log:
Increment replace count value for case-sensitive single char searches.
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/string.c?r1=1.445.2.14.2.24&r2=1.445.2.14.2.25&diff_format=u
Index: php-src/ext/standard/string.c
diff -u php-src/ext/standard/string.c:1.445.2.14.2.24
php-src/ext/standard/string.c:1.445.2.14.2.25
--- php-src/ext/standard/string.c:1.445.2.14.2.24 Wed Oct 4 11:14:32 2006
+++ php-src/ext/standard/string.c Thu Oct 5 18:23:19 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.445.2.14.2.24 2006/10/04 11:14:32 tony2001 Exp $ */
+/* $Id: string.c,v 1.445.2.14.2.25 2006/10/05 18:23:19 andrei Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -3155,6 +3155,9 @@
target += to_len;
p++;
s = p;
+ if (replace_count) {
+ *replace_count += 1;
+ }
}
if (s < e) {
memcpy(target, s, (e - s));
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php