#26973 [Opn->Ver]: printf format

From: Date: Wed, 21 Jan 2004 00:16:12 +0000
Subject: #26973 [Opn->Ver]: printf format
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-53664@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: Open +Status: Verified -Bug Type: Output Control +Bug Type: Scripting Engine problem Operating System: Linux -PHP Version: 4.3.4 +PHP Version: 4CVS, 5CVS New Comment: With C, it works as expected -> gotta be bug? :) Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#53664) next »