From: Xinchen Hui Date: Thu, 2 Jul 2015 03:44:28 +0000 (+0800) Subject: Unnecessary duplication X-Git-Tag: php-7.1.0alpha3~25^2~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=017d3530f3e162eab45a6f03d0ad7c4ff04c189f;p=php Unnecessary duplication --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 6c436f234f..3832b31b46 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -4393,7 +4393,7 @@ PHP_FUNCTION(nl2br) } if (repl_cnt == 0) { - RETURN_STRINGL(ZSTR_VAL(str), ZSTR_LEN(str)); + RETURN_STR_COPY(str); } {