From: Johannes Schlüter Date: Mon, 15 Aug 2005 19:12:59 +0000 (+0000) Subject: - Fix leak with explode of empty unicode string X-Git-Tag: PRE_NEW_OCI8_EXTENSION~246 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c5d862c2545c969247527a5de7e245ff098142e4;p=php - Fix leak with explode of empty unicode string --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 5b67852569..bbf0b9096f 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 {