ID:               49669
 Comment by:       persiancity at gmail dot com
 Reported By:      persiancity at gmail dot com
 Status:           Open
 Bug Type:         SOAP related
 Operating System: Linux
 PHP Version:      5.2.11
 New Comment:

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


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

[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