Date: 08/15/01
- Next message: Jason Greene: "Re: [PHP-DEV] Console Work"
- Previous message: Dave Wilson: "[PHP-DEV] Console Work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: marc.pohl <email protected>
Operating system: Linux
PHP version: 4.0.6
PHP Bug Type: Reproducible crash
Bug description: wordwrap crashes with 4 parameters and width=0
hi,
i discovered a small bug in wordwrap. if you call this function with 4
parameters and a width of 0 your php-script will crash/timeout.
<pre>
<?php
$string = "the quick brown fox ...";
echo wordwrap($string, 0, "\n", 1),"\n";
?>
</pre>
here is an inconsistency with the 2-parameter version, which returns all
words separated by \n in this case
regards marc
-- Edit bug report at: http://bugs.php.net/?id=12768&edit=1-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Jason Greene: "Re: [PHP-DEV] Console Work"
- Previous message: Dave Wilson: "[PHP-DEV] Console Work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

