--- fenglin/lib/str_process.inc.php 2025/10/18 14:15:35 1.21 +++ fenglin/lib/str_process.inc.php 2025/10/30 11:19:14 1.22 @@ -31,11 +31,11 @@ function str_length(string $str) : int return $ret; } -function split_line(string $str, string $prefix = "", int $width = 76, int $lines_limit = PHP_INT_MAX, string $end_of_line = "\n") : string +function split_line(string $str, string $prefix = "", int $width = PHP_INT_MAX, int $lines_limit = PHP_INT_MAX, string $end_of_line = "\n") : string { if ($width <= 0) { - return $str; + $width = PHP_INT_MAX; } $result = "";