|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18838 WordWrap output error with punctuation.
Submitted: 2002-08-09 16:43 UTC Modified: 2002-09-12 01:00 UTC
From: phpcoder at folklor dot ru Assigned:
Status: No Feedback Package: Strings related
PHP Version: 4.1.2 OS: FreeBSD, Win (all)
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.
Block user comment
Status: Assign to:
Bug Type:
From: phpcoder at folklor dot ru
New email:
PHP Version: OS:


 [2002-08-09 16:43 UTC] phpcoder at folklor dot ru
WordWrap function works improperly (don't wraps) if gets not letters but ! and ? signs, maybe more.

$error = str_repeat("!", 180);
$output = wordwrap( $error, 20, "\n<P>\n", 1 );
print $output;


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-09 16:49 UTC] phpcoder at folklor dot ru
Maybe it's my fault, but 2 forum are down 'cause de this. When in short script, everything works...
 [2002-08-10 11:21 UTC]
This is what your sample script gives me. 
Please post your output and try a (non-STABLE) snapshot from
 [2002-09-12 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 25 07:01:31 2024 UTC