summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/string.c2
1 files changed, 1 insertions, 1 deletions
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);
}
{