From: zeta2ste2000 at yahoo dot it
Operating system: HP-UX 11.11
PHP version: 5.2.2
PHP Bug Type: SOAP related
Bug description: Error returning long values in the headers
Description:
------------
When I have to manage a long number in the header, the __soapCall function
returns a float number in exponential format. The original sent value can't
be retrieved and the returned one is different.
Reproduce code:
---------------
A Java server sends a sessionID in the header with the following value :
339051398236687110
This is the client code :
$soapclient->__soapCall('beginSession',$parameters, null, null,
$header);
echo $header["sessionID"]; // returns 3.3905139823669E+17 , an
// invalid value for the next call
// and with less digits than required
$strNum = number_format($header["sessionID"], 0, "", "");
echo $strNum; // returns the rounded value
// 339051398236687050 , that is
// different from the original
// 339051398236687110
Expected result:
----------------
The header has to contain 339051398236687110
Actual result:
--------------
The header contain 3.3905139823669E+17
--
Edit bug report at http://bugs.php.net/?id=41344&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=41344&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=41344&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=41344&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41344&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=41344&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41344&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41344&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41344&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41344&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41344&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=41344&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=41344&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41344&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41344&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41344&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41344&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41344&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41344&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41344&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41344&r=mysqlcfg