php.net |  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
Votes:1
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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:


example:



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 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-15 08:13 UTC] derick@php.net
See bug #21658, it's the same so this one is not needed -> bogus.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 07:01:30 2024 UTC