From:             jschmidt at thriftycmh dot net
Operating system: Linux 2.4
PHP version:      4.3.7
PHP Bug Type:     Unknown/Other Function
Bug description:  sprintf("%3.2f",'1.00') no longer working

Description:
------------
sprintf("%3.2f",'1.00')

This was working fine in 4.3.6 but not in 4.3.7.  The expected output is "
 1.00"  but is "1.00".  In other words, the leading spaces are no longer
working.

Reproduce code:
---------------
sprintf("%3.2f",'1.00')


Expected result:
----------------
"  1.00"

Actual result:
--------------
"1.00"

-- 
Edit bug report at http://bugs.php.net/?id=28633&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28633&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28633&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28633&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28633&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28633&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28633&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28633&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28633&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28633&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28633&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28633&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28633&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28633&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28633&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28633&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28633&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28633&r=float

Reply via email to