php/php-src — pull request #82 by imzet (2012-05-12 18:54:05+00:00)
Title: Fixed Bug #60977 number_format behavior changed when passing \0 for 4th parameter.

I think the parameter 4 and 6 for function _php_math_number_format_ex should be deleted because the type of parameter 3 and 5 is already string. User not need calculate the string length before call the function.

I have checked all source code to found where are the function _php_math_number_format_ex is called. Seems only number_format() and _php_math_number_format() call that function.

I also add some tests for function number_format in file tests/math/number_format_basic.phpt