com php-src: lost condition: ext/standard/string.c
| From: | Anatol Belski | Date: | Wed, 16 Oct 2013 10:09:42 +0000 |
| Subject: | com php-src: lost condition: ext/standard/string.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73485@lists.php.net to get a copy of this message | ||
Commit: 12951f8bbdc624cef451eec02060e24f0f234cd6
Author: Anatol Belski <ab@php.net> Wed, 21 Aug 2013 00:33:47 -0700
Parents: 6fc93dfa6cd9fd4b571d0890e4201422adb21a32
Branches: str_size_and_int64
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=12951f8bbdc624cef451eec02060e24f0f234cd6
Log:
lost condition
Changed paths:
M ext/standard/string.c
Diff:
diff --git a/ext/standard/string.c b/ext/standard/string.c
index 2fe9e84..68298d7 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;