|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-01-30 06:31 UTC] laruence@php.net
-Status: Open
+Status: Wont fix
[2015-01-30 06:31 UTC] laruence@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 14:00:01 2025 UTC |
Description: ------------ in php 5.3 char *formatted = _php_math_number_format(1234.56, 2, ".", "\x00"); printf("%s", formatted); will write "1234.56" But, in php 5.4 it will write "1" It happens because _php_math_number_format() in php 5.4 use _php_math_number_format_ex(), but code wasn't refactored correctly. Test script: --------------- char *formatted = _php_math_number_format(1234.56, 2, ".", "\x00"); printf("returns %s, but correct result is 1234.56", formatted);