Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.9.2
-
Component/s: Zend_XmlRpc_Client
-
Labels:None
Description
When I make a request with a double parameter like 3.39412716 , the value is sent as 3.394127 .
The rounding takes place in Zend/XmlRpc/Value/Double.php on line 48 :
$this->_value = sprintf('%f',(float)$value); // Make sure this value is float (double) and without the scientific notation
This is a bug due to a known behavior of sprintf(). See http://us2.php.net/manual/en/function.sprintf.php#92124 for details. The solution would be to specify a specific precision for sprintf().