php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42592 wordwrap warning message contains and extra . in it
Submitted: 2007-09-07 16:46 UTC Modified: 2007-09-07 17:57 UTC
From: kraghuba at in dot ibm dot com Assigned: pajoye (profile)
Status: Closed Package: Strings related
PHP Version: 5CVS-2007-09-07 (snap) OS: linux, windows
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: kraghuba at in dot ibm dot com
New email:
PHP Version: OS:

 

 [2007-09-07 16:46 UTC] kraghuba at in dot ibm dot com
Description:
------------
warning message generated by wordwrap contains a extra . char when cut = true and width = 0

applicable to php5 and php6

Reproduce code:
---------------
<?php
var_dump( wordwrap("testing wordwrap", 0, "<br />\n", true) );
?>

Expected result:
----------------
Warning: wordwrap(): Can't force cut when width is zero in %s on line 2
bool(false)


Actual result:
--------------
Warning: wordwrap(): Can't force cut when width is zero. in %s on line 2
bool(false)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-07 17:57 UTC] pajoye@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 06:01:29 2024 UTC