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
 [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-2020 The PHP Group
All rights reserved.
Last updated: Fri Jan 17 22:01:22 2020 UTC