|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4496 float isn't passed correctly to php function
Submitted: 2000-05-18 08:21 UTC Modified: 2001-02-10 15:48 UTC
From: Uwe dot Steinmann at fernuni-hagen dot de Assigned:
Status: Closed Package: Parser error
PHP Version: 3.0 Latest CVS (18/05/2000) OS: Linux 2.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: Uwe dot Steinmann at fernuni-hagen dot de
New email:
PHP Version: OS:


 [2000-05-18 08:21 UTC] Uwe dot Steinmann at fernuni-hagen dot de
The following line in tests/testswf


doesn't pass the last float corretly to the internal
php function. (True for any other float parameter as well)

I placed

fprintf(stderr, "%f %f %f %f %f\n", (float)(*x1)->value.dval,     

void php_swf_define(INTERNAL_FUNCTION_PARAMETERS, int opt)

and the output is

-60,000000 0,000000 60,000000 0,000000 1,000000

Why is the last float 1.0 and not 1.2?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-17 15:48 UTC]
this is locale-dependant, it has been fixed in php4 but not in php3

as a workaround use setlocale("C",LC_ALL)
 [2001-02-10 15:48 UTC]
duplicate of 2260.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Oct 04 11:01:25 2023 UTC