|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21659 sprintf
Submitted: 2003-01-15 08:08 UTC Modified: 2003-01-15 08:13 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: matteo at euronia dot it Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.0 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: matteo at euronia dot it
New email:
PHP Version: OS:


 [2003-01-15 08:08 UTC] matteo at euronia dot it
I obtain from php 4.30 and error using sprintf

My  php code generate
a result file in which is it possible to see the bug:


sprintf(%.3f,2.04204204204) = 0.0�0
sprintf(%.3f,2.1981981982) = 000.000
sprintf(%.3f,1.07507507508) = 1.000
sprintf(%.3f,1.98498498498) = 0.000
sprintf(%.3f,0.318318318318) = 0.000
sprintf(%.3f,0.90990990991) = 1.000
sprintf(%.3f,0.660660660661) = 0.000
sprintf(%.3f,2.27327327327) = 000000.000

sprintf generate strange non visible alfanumeric caracter 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-15 08:13 UTC]
See bug #21658, it's the same so this one is not needed -> bogus.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Jan 31 23:03:42 2023 UTC