php.net |  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
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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
17 + 37 = ?
Subscribe to this entry?

 
 [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;


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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] sander@php.net
This is what your sample script gives me. 
!!!!!!!!!!!!!!!!!!!!
<P>
!!!!!!!!!!!!!!!!!!!!
<P>
!!!!!!!!!!!!!!!!!!!!
<P>
!!!!!!!!!!!!!!!!!!!!
<P>
!!!!!!!!!!!!!!!!!!!!
<P>
!!!!!!!!!!!!!!!!!!!!
<P>
!!!!!!!!!!!!!!!!!!!!
<P>
!!!!!!!!!!!!!!!!!!!!
<P>
!!!!!!!!!!!!!!!!!!!!
Please post your output and try a (non-STABLE) snapshot from http://snaps.php.net.
 [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: Tue Apr 23 09:01:27 2024 UTC