From: Stanislav Malyshev Date: Wed, 21 Nov 2007 02:27:07 +0000 (+0000) Subject: fix #42866, from Claudio Cherubino X-Git-Tag: RELEASE_2_0_0a1~1321 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c0869343fa682616bd628718c5d948bf7fb242c;p=php fix #42866, from Claudio Cherubino --- diff --git a/ext/standard/string.c b/ext/standard/string.c index a11dec2afa..c5abfb2606 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -7802,7 +7802,7 @@ PHP_FUNCTION(str_split) } if (p != (str.s + str_len * charsize)) { - add_next_index_zstrl(return_value, str_type, ZSTR(p), (str.s + str_len * charsize - p), 1); + add_next_index_zstrl(return_value, str_type, ZSTR(p), (str.s + str_len * charsize - p)/charsize, 1); } } /* }}} */