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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: j-f at gmx dot net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 16:01:28 2025 UTC