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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 11:01:31 2025 UTC