From: persiancity at gmail dot com Operating system: Linux PHP version: 5.2.11 PHP Bug Type: SOAP related Bug description: SOAP pass incorrect number for long type
Description: ------------ I use a SoapClient code to send a number to mysql database on a service server. The field type with bug is xsd:long. when I pass a integer value larger than 2147483647 to this field I get inccorect value on the service server database (All numbers = 2147483647). I get correct result when send data from a 64bit server and inccorect result when send from 32bit server. but I am not sure it is cause of server type. I have not access to soap service server to know what is it. Reproduce code: --------------- $value= 3147483647; $result = $this->client->register_number((int)$value); // result in database is: 2147483647 !! // the mysql database field type is unsigned bigint Expected result: ---------------- result in database is: 2147483647 !! -- Edit bug report at http://bugs.php.net/?id=49669&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49669&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49669&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49669&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49669&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49669&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49669&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49669&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49669&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49669&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49669&r=support Expected behavior: http://bugs.php.net/fix.php?id=49669&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49669&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49669&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49669&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49669&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49669&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49669&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49669&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49669&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49669&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49669&r=mysqlcfg