Bug #4496: float isn't passed correctly to php function

From: Date: Thu, 18 May 2000 06:21:20 +0000
Subject: Bug #4496: float isn't passed correctly to php function
Groups: php.dev 
Request: Send a blank email to php-dev+get-18896@lists.php.net to get a copy of this message
From: Uwe.Steinmann@fernuni-hagen.de Operating system: Linux 2.2 PHP version: 3.0 Latest CVS (18/05/2000) PHP Bug Type: Parser error Bug description: float isn't passed correctly to php function 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?

« previous php.dev (#18896) next »