From c5d862c2545c969247527a5de7e245ff098142e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Schl=C3=BCter?= Date: Mon, 15 Aug 2005 19:12:59 +0000 Subject: [PATCH] - Fix leak with explode of empty unicode string --- ext/standard/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/string.c b/ext/standard/string.c index 5b67852569b..bbf0b9096f4 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1097,7 +1097,7 @@ PHP_FUNCTION(explode) 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 {