PHP Bug: #50696: number_format when passed a 0, returns null 95 points by chaostheory·6168 days ago·bugs.php.net·Show in HN
Interesting discussion in there, but I think the PHP guys are right on this one. You should never rely on undefined behavior of any API for mission critical code.
Always use what is documented so you don't have to cry later..