php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42796 warning message generated by chunk_split() contains extra dot (.) char
Submitted: 2007-09-29 10:12 UTC Modified: 2007-09-30 05:40 UTC
From: kraghuba at in dot ibm dot com Assigned:
Status: Closed Package: Strings related
PHP Version: 5CVS-2007-09-29 (snap) OS: windows/linux
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 !
Your email address:
MUST BE VALID
Solve the problem:
50 - 13 = ?
Subscribe to this entry?

 
 [2007-09-29 10:12 UTC] kraghuba at in dot ibm dot com
Description:
------------
The warning message generated by chunk_split() when chunk_len is given as negative value  contains an extra dot (.) char.


applicable to php5 only.

Reproduce code:
---------------
<?php
 var_dump( chunk_split("string", -1, ", ") );
?>

Expected result:
----------------
Warning: chunk_split(): Chunk length should be greater than zero in %s on line %d
bool(false)

Actual result:
--------------
Warning: chunk_split(): Chunk length should be greater than zero. in %s on line %d
bool(false)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-30 05:40 UTC] jani@php.net
Fixed among couple of dozen other ones.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 07:01:28 2024 UTC