|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
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-2022 The PHP Group
All rights reserved.
Last updated: Tue Nov 29 07:05:52 2022 UTC