From: Sascha Schumann Date: Fri, 21 Sep 2001 16:17:14 +0000 (+0000) Subject: don't use boyer_str_to_str. It is experimental X-Git-Tag: PRE_SUBST_Z_MACROS~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a8677167dcf48333b868c5c0c91f6ebbddd704f;p=php don't use boyer_str_to_str. It is experimental --- diff --git a/ext/standard/string.c b/ext/standard/string.c index cf81eead7c..1900ac3d44 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -2991,7 +2991,7 @@ PHP_FUNCTION(nl2br) convert_to_string_ex(str); /* Windows style line-endings */ - tmp = boyer_str_to_str((*str)->value.str.val, (*str)->value.str.len, "\r\n", 2, "
\r\n", 8, &new_length); + tmp = php_str_to_str((*str)->value.str.val, (*str)->value.str.len, "\r\n", 2, "
\r\n", 8, &new_length); if (new_length != (*str)->value.str.len) RETURN_STRINGL (tmp, new_length, 0); efree (tmp);