From: rbell01824 at earthlink dot net
Operating system: XP home
PHP version: 4.3.8
PHP Bug Type: Output Control
Bug description: %f appears to be broken
Description:
------------
%f inconsistent behavior at odds with docs
Reproduce code:
---------------
$data1 = 1.3125;
$data2 = 0.7891;
$data3 = 12.12345;
$s = "[[%09.4f]] [[%09.4f]] [[%09.4f]]";
printf ($s, $data1, $data2, $data3 );
produces
[[0001.3125]] [[000000000.7891]] [[0012.1235]]
either way is fine, but it should really be one or the other
Expected result:
----------------
either way is fine, but it should really be one or the other
--
Edit bug report at http://bugs.php.net/?id=30570&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30570&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30570&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30570&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30570&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30570&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30570&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30570&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30570&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30570&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30570&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30570&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30570&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30570&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30570&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30570&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30570&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30570&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30570&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30570&r=mysqlcfg