From: stiangarthus at hotmail dot com Operating system: Linux PHP version: 4.3.2 PHP Bug Type: *Math Functions Bug description: number_format / printf problem
Description: ------------ Have only experienced this problem on one server. Fresh php installation, standard php.ini. Configure line: ./configure' '--with-mysql=/usr/local/mysql' '--with-apache=/usr/local/src/www/apache_1.3.27' '--with-openssl=/usr' '--enable-track-vars' '--enable-force-cgi-redirect' '--with-gettext' Reproduce code: --------------- $num = 4; $num = number_format($num, 2); echo "$num<br>"; $num = 4; printf ("%.2f", $num); Expected result: ---------------- 4.00 4.00 Actual result: -------------- 0.00 0.00 http://www.yosearch.com/test1.php <- code here http://www.yosearch.com/test.php <- phpinfo() here -- Edit bug report at http://bugs.php.net/?id=24237&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24237&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24237&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24237&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24237&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24237&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24237&r=support Expected behavior: http://bugs.php.net/fix.php?id=24237&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24237&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24237&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24237&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24237&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24237&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24237&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24237&r=gnused