php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9449 wordwrap runs into infinite loop
Submitted: 2001-02-25 20:55 UTC Modified: 2001-02-26 08:05 UTC
From: j-f at gmx dot net Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0 Latest CVS (25/02/2001) OS: W2K
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
6 + 44 = ?
Subscribe to this entry?

 
 [2001-02-25 20:55 UTC] j-f at gmx dot net
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-26 07:11 UTC] jmoore@php.net
This seems to happen when $break is over 2 chars, Ill look at it later.

James
 [2001-02-26 08:05 UTC] jmoore@php.net
Fixed in CVS.

-- James
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 07:01:30 2024 UTC