#40576 [Opn->Asn]: long values are truncated to 6 decimal digits upon encoding

From: Date: Wed, 21 Feb 2007 13:06:03 +0000
Subject: #40576 [Opn->Asn]: long values are truncated to 6 decimal digits upon encoding
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-109253@lists.php.net to get a copy of this message
ID: 40576 Updated by: tony2001@php.net Reported By: giunta dot gaetano at sea-aeroportimilano dot it -Status: Open +Status: Assigned Bug Type: XMLRPC-EPI related Operating System: win2k sp4 PHP Version: 5.2.1 -Assigned To: +Assigned To: tony2001 Previous Comments: ------------------------------------------------------------------------ [2007-02-21 11:46:29] giunta dot gaetano at sea-aeroportimilano dot it Description: ------------ As per the subject. Please note I am fully aware it is the fault of the underlying EPI lib, plus the xmlrpc spec does not mandate a strict number of digits as min/max. BUT - the epi lib is dead for all purposes but php. Hacking it might be advisable - 6 digits is a very, very low figure... Thanks Gaetano Reproduce code: --------------- <?php echo htmlspecialchars(xmlrpc_encode(1.123456789)); ?> Expected result: ---------------- <?xml version="1.0" encoding="utf-8"?> <params> <param> <value> <double>1.123457</double> </value> </param> </params> Actual result: -------------- <?xml version="1.0" encoding="utf-8"?> <params> <param> <value> <double>1.123456789</double> </value> </param> </params> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40576&edit=1

« previous php.bugs (#109253) next »