com php-src: Unnecessary duplication: ext/standard/string.c

From: Date: Thu, 02 Jul 2015 03:47:22 +0000
Subject: com php-src: Unnecessary duplication: ext/standard/string.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-87682@lists.php.net to get a copy of this message
Commit: 017d3530f3e162eab45a6f03d0ad7c4ff04c189f Author: Xinchen Hui <laruence@php.net> Thu, 2 Jul 2015 11:44:28 +0800 Parents: fc58025627ed75734125494a6e2417f2190de213 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=017d3530f3e162eab45a6f03d0ad7c4ff04c189f Log: Unnecessary duplication Changed paths: M ext/standard/string.c Diff: diff --git a/ext/standard/string.c b/ext/standard/string.c index 6c436f2..3832b31 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); } {

« previous php.cvs (#87682) next »