don't use boyer_str_to_str. It is experimental

This commit is contained in:
Sascha Schumann 2001-09-21 16:17:14 +00:00
parent 9002e37e4e
commit 0a8677167d

View File

@ -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, "<br />\r\n", 8, &new_length);
tmp = php_str_to_str((*str)->value.str.val, (*str)->value.str.len, "\r\n", 2, "<br />\r\n", 8, &new_length);
if (new_length != (*str)->value.str.len)
RETURN_STRINGL (tmp, new_length, 0);
efree (tmp);