PHP 4.0 Bug #9449: wordwrap runs into infinite loop
| From: | j-f at gmx dot net | Date: | Mon, 26 Feb 2001 01:55:09 +0000 |
| Subject: | PHP 4.0 Bug #9449: wordwrap runs into infinite loop | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-47508@lists.php.net to get a copy of this message | ||
From: j-f@gmx.net
Operating system: W2K
PHP version: 4.0 Latest CVS (25/02/2001)
PHP Bug Type: Reproduceable crash
Bug description: wordwrap runs into infinite loop
May be related to bug id #9339.
If a word in $string reaches (really! - see below) or exceeds the $width length, $cut is unset *and*
a break string like "<br>" is given, wordwrap() runs into a infinite loop... :-(
Example:
echo wordwrap("1234567890", 10, "<br>");
I'm running php4.0.5-dev-win32-20010220.exe from www.php4win.de witch Apache on W2K AS.
--
Edit Bug report at: http://bugs.php.net/?id=9449&edit=1