|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-05-18 08:21 UTC] Uwe dot Steinmann at fernuni-hagen dot de
The following line in tests/testswf
swf_defineline($LINEID,-60.0,0.0,60.0,0.0,1.2);
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,
(float)(*y1)->value.dval,
(float)(*x2)->value.dval,
(float)(*y2)->value.dval,
(float)(*width)->value.dval);
in
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?
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 00:00:01 2025 UTC |
this is locale-dependant, it has been fixed in php4 but not in php3 as a workaround use setlocale("C",LC_ALL)