From: alex at cartel dot md Operating system: Linux PHP version: 4.3.4 PHP Bug Type: Output Control Bug description: printf format
Description:
------------
printf function pads incorrectly with zeros and sign.
Reproduce code:
---------------
<?
printf("%+05d", 200);
?>
Expected result:
----------------
+0200
Actual result:
--------------
0+200
--
Edit bug report at http://bugs.php.net/?id=26973&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26973&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26973&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26973&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26973&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26973&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26973&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26973&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26973&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26973&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26973&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26973&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26973&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26973&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26973&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26973&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26973&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26973&r=float
