From: mark at islandnet dot com Operating system: FreeBSD 4.10 PHP version: 4.3.7 PHP Bug Type: *General Issues Bug description: printf formatting bug
Description: ------------ Width formatting of %f values is buggy when the value is zero point something. Reproduce code: --------------- <? printf( "[%10.3f]\n", 0.5 ); printf( "[%10.3f]\n", 1.5 ); ?> Expected result: ---------------- [ 0.500] [ 1.500] That is: same overall width for both is expected. Actual result: -------------- [ 0.500] [ 1.500] Note the 4 extra spaces in the first line! -- Edit bug report at http://bugs.php.net/?id=28738&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28738&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28738&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28738&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28738&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28738&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28738&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28738&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28738&r=support Expected behavior: http://bugs.php.net/fix.php?id=28738&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28738&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28738&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28738&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28738&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28738&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28738&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28738&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28738&r=float
