Doc #62454 [Opn->Wfx]: change in handling zero length strings.
| From: | aharvey@php.net | Date: | Fri, 20 Jul 2012 09:09:04 +0000 |
| Subject: | Doc #62454 [Opn->Wfx]: change in handling zero length strings. | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-8610@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62454&edit=1
ID: 62454
Updated by: aharvey@php.net
Reported by: m at micheas dot net
Summary: change in handling zero length strings.
-Status: Open
+Status: Wont fix
Type: Documentation Problem
Package: Documentation problem
PHP Version: 5.3.14
Block user comment: N
Private report: N
New Comment:
General policy is not to fix these. (And yes, given the commit I just made for doc bug #62471, I
realise I'm a giant hypocrite saying that.)
Previous Comments:
------------------------------------------------------------------------
[2012-06-30 11:10:48] nikic@php.net
Related: https://bugs.php.net/bug.php?id=50696
As of PHP 5.3 all functions (minus a few rare exceptions) throw a warning (and return NULL) on
invalid parameters. As this is the same for all functions it isn't explicitly documented.
As the number_format case now came up again one could maybe add a note in the changelog or something
like that.
------------------------------------------------------------------------
[2012-06-30 08:43:44] m at micheas dot net
Description:
------------
---
From manual page: http://www.php.net/function.number-format#refsect1-
function.number-format-changelog
---
In prior to php 5.3 non-numeric input returned 0 it now returns null.
Test script:
---------------
/* this returns 0 prior to php 5.3. As of 5.3 it returns Null */
print number_format("",0);
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62454&edit=1