#30570 [Opn->Csd]: %f appears to be broken

From: Date: Tue, 26 Oct 2004 20:04:20 +0000
Subject: #30570 [Opn->Csd]: %f appears to be broken
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-68115@lists.php.net to get a copy of this message
ID: 30570 Updated by: derick@php.net Reported By: rbell01824 at earthlink dot net -Status: Open +Status: Closed Bug Type: Output Control Operating System: XP home PHP Version: 4.3.8 New Comment: Thank you for your bug report. This issue has already been fixed in the latest released version of PHP, which you can download at http://www.php.net/downloads.php Previous Comments: ------------------------------------------------------------------------ [2004-10-26 22:00:16] rbell01824 at earthlink dot net 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 this bug report at http://bugs.php.net/?id=30570&edit=1

« previous php.bugs (#68115) next »