com php-src: lost condition: ext/standard/string.c

From: Date: Wed, 21 Aug 2013 07:33:47 +0000
Subject: com php-src: lost condition: ext/standard/string.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-73619@lists.php.net to get a copy of this message
Commit: d6c59e1d7e706cf56dccddf7ddcf1acfbebf1514 Author: Anatol Belski <ab@php.net> Wed, 21 Aug 2013 00:33:47 -0700 Parents: e2070d14094bdb3452d7d7234290fe72636b3eeb Branches: str_size_and_int64 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d6c59e1d7e706cf56dccddf7ddcf1acfbebf1514 Log: lost condition Changed paths: M ext/standard/string.c Diff: diff --git a/ext/standard/string.c b/ext/standard/string.c index abe9ba4..ab89b7e 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -5514,7 +5514,7 @@ PHP_FUNCTION(str_split) RETURN_FALSE; } - if (0 == str_len) { + if (0 == str_len || split_length >= str_len) { array_init_size(return_value, 1); add_next_index_stringl(return_value, str, str_len, 1); return;

« previous php.cvs (#73619) next »