cvs: php-src /ext/standard string.c
| From: | Stanislav Malyshev | Date: | Wed, 21 Nov 2007 02:27:07 +0000 |
| Subject: | cvs: php-src /ext/standard string.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-47259@lists.php.net to get a copy of this message | ||
stas Wed Nov 21 02:27:07 2007 UTC
Modified files:
/php-src/ext/standard string.c
Log:
fix #42866, from Claudio Cherubino
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/string.c?r1=1.655&r2=1.656&diff_format=u
Index: php-src/ext/standard/string.c
diff -u php-src/ext/standard/string.c:1.655 php-src/ext/standard/string.c:1.656
--- php-src/ext/standard/string.c:1.655 Sun Oct 7 05:15:06 2007
+++ php-src/ext/standard/string.c Wed Nov 21 02:27:07 2007
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.655 2007/10/07 05:15:06 davidw Exp $ */
+/* $Id: string.c,v 1.656 2007/11/21 02:27:07 stas Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -7802,7 +7802,7 @@
}
if (p != (str.s + str_len * charsize)) {
- add_next_index_zstrl(return_value, str_type, ZSTR(p), (str.s + str_len * charsize - p), 1);
+ add_next_index_zstrl(return_value, str_type, ZSTR(p), (str.s + str_len * charsize - p)/charsize,
1);
}
}
/* }}} */