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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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;


Patches

Pull Requests

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: Wed Dec 11 13:01:29 2024 UTC