ID:               49669
 Updated by:       sjo...@php.net
 Reported By:      persiancity at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         SOAP related
 Operating System: Linux
 PHP Version:      5.2.11
 New Comment:

Thank you for your bug report.

This problem has already been reported to the bug tracker by someone
else.

Open:
Bug #48717 Cannot pass datatype long (> 2147483647) in SOAP requests

Other:
Bug #40099 Cannot pass long (> 2147483647) in SOAP requests
Bug #30045 Cannot pass big integers (> 2147483647) in SOAP requests



Previous Comments:
------------------------------------------------------------------------

[2009-09-25 15:06:33] persiancity at gmail dot com

I should add that I also tried converting to string:
 
$result = $this->client->register_number((string)$value); 
 
with no chance.

------------------------------------------------------------------------

[2009-09-25 15:04:13] persiancity at gmail dot com

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 this bug report at http://bugs.php.net/?id=49669&edit=1

Reply via email to