]> granicus.if.org Git - php/commit
Fix bug #62112: number_format() is not binary safe
authorGustavo André dos Santos Lopes <cataphract@php.net>
Wed, 23 May 2012 08:56:57 +0000 (10:56 +0200)
committerGustavo André dos Santos Lopes <cataphract@php.net>
Wed, 23 May 2012 09:37:27 +0000 (11:37 +0200)
commit3e62aae1b456440328af4153524e22679b84f68a
tree9377753416b287f9c51ee8db8f30bafedb99111b
parenta07d76c0ba57e6471ac5869af0aaa26206baa284
Fix bug #62112: number_format() is not binary safe

The bug report actually urges PHP 5.3's behavior to be
reinstated -- that is, make "\0", when used as a separator,
be the same as no separator at all. I believe that is not a
proper course of action and that "\0" being interpreted as
no seperator was a bug in PHP 5.3.

Using "" for no separator, in both 5.3 and 5.4, before and
after this change, causes no separator to be used, so
there is no functionality loss.
NEWS
ext/standard/math.c
ext/standard/tests/math/bug62112.phpt [new file with mode: 0644]