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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

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: Fri Mar 29 06:01:29 2024 UTC