php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #34933 bug on function.number-format.html
Submitted: 2005-10-20 16:47 UTC Modified: 2005-10-21 17:22 UTC
From: richard dot quadling at bandvulc dot co dot uk Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: windows
Private report: No CVE-ID: None
 [2005-10-20 16:47 UTC] richard dot quadling at bandvulc dot co dot uk
Description:
------------
I have found a bug on page function.number-format.html
[chm date: 2005-10-04]...

The foo parameter has become f00. lowercase-O became zero.





Expected result:
----------------
Only the first character of thousands_sep is used. For example, if you use foo as thousands_sep on the number 1000, number_format() will return 1foo0. 



Actual result:
--------------
Only the first character of thousands_sep is used. For example, if you use foo as thousands_sep on the number 1000, number_format() will return 1f000. 



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-20 16:49 UTC] richard dot quadling at bandvulc dot co dot uk
RTFM
 [2005-10-20 17:32 UTC] mgf@php.net
Quite.  Nonetheless, this is not, perhaps, the most felicitous of examples.  It would be better to use a value other than 'foo' (such as 'bar' ;) to make it quite clear what's going on.
 [2005-10-21 10:29 UTC] richard dot quadling at bandvulc dot co dot uk
Yes. That is what threw me. I saw foo and f000.

Whereas bar and b000 is more obvious.
 [2005-10-21 17:22 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 27 09:00:03 2025 UTC