]> granicus.if.org Git - php/commitdiff
Unnecessary duplication
authorXinchen Hui <laruence@php.net>
Thu, 2 Jul 2015 03:44:28 +0000 (11:44 +0800)
committerXinchen Hui <laruence@php.net>
Thu, 2 Jul 2015 03:47:22 +0000 (11:47 +0800)
ext/standard/string.c

index 6c436f234f85472f9afa65859e2a92b8329ac097..3832b31b4659e5c17ab57cca976ba6e5bec22669 100644 (file)
@@ -4393,7 +4393,7 @@ PHP_FUNCTION(nl2br)
        }
 
        if (repl_cnt == 0) {
-               RETURN_STRINGL(ZSTR_VAL(str), ZSTR_LEN(str));
+               RETURN_STR_COPY(str);
        }
 
        {