#26973 [Ver->Csd]: printf format
| From: | sniper@php.net | Date: | Wed, 21 Jan 2004 04:03:39 +0000 |
| Subject: | #26973 [Ver->Csd]: printf format | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-53674@lists.php.net to get a copy of this message | ||
ID: 26973
Updated by: sniper@php.net
Reported By: alex at cartel dot md
-Status: Verified
+Status: Closed
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4CVS, 5CVS
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2004-01-20 19:16:12] sniper@php.net
With C, it works as expected -> gotta be bug? :)
------------------------------------------------------------------------
[2004-01-20 06:08:54] alex at cartel dot md
Description:
------------
printf function pads incorrectly with zeros and sign.
Reproduce code:
---------------
<?
printf("%+05d", 200);
?>
Expected result:
----------------
+0200
Actual result:
--------------
0+200
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26973&edit=1