]> granicus.if.org Git - php/commitdiff
don't use boyer_str_to_str. It is experimental
authorSascha Schumann <sas@php.net>
Fri, 21 Sep 2001 16:17:14 +0000 (16:17 +0000)
committerSascha Schumann <sas@php.net>
Fri, 21 Sep 2001 16:17:14 +0000 (16:17 +0000)
ext/standard/string.c

index cf81eead7cec19b50e8fbd9c27b21a307e658fc5..1900ac3d44b655e3a0af520eeeaea081d35693b6 100644 (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);