From: gerhard dot mueller at travian dot org Operating system: Linux Debian PHP version: 5.2.3 PHP Bug Type: Math related Bug description: php.ini setting for "precision" ignored. value is always 6
Description: ------------ The php.ini setting of "precision" seems to be ignored and is always 6. I makes no difference when you override it with ini_set() or directly in php.ini. tested on 5.1.6, 5.2.2 and 5.2.3 on several Linux Servers and 2 Windows PCs. Only in 5.1.6 change of "precision" was not ignored. Example in php.ini ; The number of significant digits displayed in floating point numbers. precision = 12 Same as this report but bug has nothing to do with round() http://bugs.php.net/bug.php?id=42484 Reproduce code: --------------- ini_set('precision','6'); $big_int = (float)1200000; print "precision6: $big_int \n\n"; ini_set('precision','12'); $big_int = (float)1200000; print "precision12: $big_int"; Expected result: ---------------- precision6: 1.2E+006 precision12: 1200000 Actual result: -------------- precision6: 1.2E+006 precision12: 1.2E+006 -- Edit bug report at http://bugs.php.net/?id=42487&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42487&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42487&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42487&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42487&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42487&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42487&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42487&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42487&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42487&r=support Expected behavior: http://bugs.php.net/fix.php?id=42487&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42487&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42487&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42487&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42487&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42487&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42487&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42487&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42487&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42487&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42487&r=mysqlcfg
