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
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-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

Pull Requests

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: Sun Dec 22 11:01:30 2024 UTC