From:             [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


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.

 $string = "the quick brown fox ...";
 echo wordwrap($string, 0, "\n", 1),"\n";

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:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to