iliaa Fri Oct 11 10:48:25 2002 EDT
Modified files:
/php4/ext/standard php_string.h
Log:
Fixed bug #19865
Index: php4/ext/standard/php_string.h
diff -u php4/ext/standard/php_string.h:1.62 php4/ext/standard/php_string.h:1.63
--- php4/ext/standard/php_string.h:1.62 Wed Oct 9 09:37:02 2002
+++ php4/ext/standard/php_string.h Fri Oct 11 10:48:25 2002
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_string.h,v 1.62 2002/10/09 13:37:02 iliaa Exp $ */
+/* $Id: php_string.h,v 1.63 2002/10/11 14:48:25 iliaa Exp $ */
/* Synced with php 3.0 revision 1.43 1999-06-16 [ssb] */
@@ -138,7 +138,7 @@
end -= needle_len;
while (p <= end) {
- if ((p = strchr(p, *needle)) && ne == p[needle_len-1]) {
+ if ((p = memchr(p, *needle, (end-p+1))) && ne == p[needle_len-1]) {
if (!memcmp(needle, p, needle_len-1)) {
return p;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php