Skip to content

Commit 436a658

Browse files
committed
ext/standard: zend_string_concat2() instead of manual memcpy
1 parent fad84b2 commit 436a658

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/standard/string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2203,7 +2203,7 @@ PHP_FUNCTION(chunk_split)
22032203

22042204
if ((size_t)chunklen > ZSTR_LEN(str)) {
22052205
/* to maintain BC, we must return original string + ending */
2206-
result = result = zend_string_concat2(
2206+
result = zend_string_concat2(
22072207
ZSTR_VAL(str), ZSTR_LEN(str),
22082208
end, endlen
22092209
);

0 commit comments

Comments
 (0)