|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #63354 Display Format
Submitted: 2012-10-25 05:54 UTC Modified: 2012-10-25 06:22 UTC
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: p dot varga at lottery24 dot net Assigned:
Status: Wont fix Package: Variables related
PHP Version: 5.4.7RC1 OS: Linux Suse Server
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.
Block user comment
Status: Assign to:
Bug Type:
From: p dot varga at lottery24 dot net
New email:
PHP Version: OS:


 [2012-10-25 05:54 UTC] p dot varga at lottery24 dot net

It would be nice when the format of the numbers could be more human readable.
Example how it is now:
Allowed memory size of 130000000 bytes exhausted (tried to allocate 133600001 

Thank you! Peter

Test script:
$s = "";

for ( $i = 1 ; $i < 10000 ; $i++ ) {
        $s .= str_repeat("x", 100000);

Expected result:
Allowed memory size of 130.000.000 bytes exhausted (tried to allocate 133.600.001 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-10-25 06:22 UTC]
Integer to string conversion in PHP is fundamental behaviour — we couldn't change this without a massive backward compatibility break (not to mention the additional problem of deciding which of the at least four schemes I know of for digit grouping would be used).

Plus, number_format() already exists for the common cases.

Marking Won't Fix.
 [2012-10-25 06:22 UTC]
-Status: Open +Status: Wont fix
 [2012-10-25 07:18 UTC] p dot varga at lottery24 dot net
I think I did not explain myself understandable. this is the PHP message in the 
error log. it has NOTHING to do with a  massive backward compatibility break nor 
with number_format.
Just with the output in the error log and I think this can be really adapted very 

Thank you, Peter
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Sep 25 21:03:35 2021 UTC