[PHP-DEV] PHP 4.0 Bug #9449: wordwrap runs into infinite loop From: j-f <email protected>
Date: 02/25/01

From: j-f <email protected>
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

-- 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>