cvs: php-src /ext/standard string.c
| From: | Johannes Schl�ter | Date: | Mon, 15 Aug 2005 19:13:00 +0000 |
| Subject: | cvs: php-src /ext/standard string.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-33410@lists.php.net to get a copy of this message | ||
johannes Mon Aug 15 15:13:00 2005 EDT
Modified files:
/php-src/ext/standard string.c
Log:
- Fix leak with explode of empty unicode string
http://cvs.php.net/diff.php/php-src/ext/standard/string.c?r1=1.452&r2=1.453&ty=u
Index: php-src/ext/standard/string.c
diff -u php-src/ext/standard/string.c:1.452 php-src/ext/standard/string.c:1.453
--- php-src/ext/standard/string.c:1.452 Mon Aug 15 04:11:35 2005
+++ php-src/ext/standard/string.c Mon Aug 15 15:12:59 2005
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.452 2005/08/15 08:11:35 dmitry Exp $ */
+/* $Id: string.c,v 1.453 2005/08/15 19:12:59 johannes Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -1097,7 +1097,7 @@
if ( str_len == 0 ) {
if ( str_type == IS_UNICODE ) {
- add_next_index_unicodel(return_value, USTR_MAKE(""), sizeof("")-1, 1);
+ add_next_index_unicodel(return_value, USTR_MAKE(""), sizeof("")-1, 0);
} else if ( str_type == IS_BINARY ) {
add_next_index_binaryl(return_value, "", sizeof("")-1, 1);
} else {