ID: 45058 Comment by: crrodriguez at suse dot de Reported By: crbdigo at gmail dot com Status: Open Bug Type: *Programming Data Structures Operating System: Windows Vista 64 PHP Version: 5.2CVS-2008-05-21 (CVS) New Comment:
This is the expected behaviuor. http://php.net/manual/en/language.types.integer.php Previous Comments: ------------------------------------------------------------------------ [2008-05-21 14:47:26] crbdigo at gmail dot com Description: ------------ I'm using the PHP V5.2.0 on Windows Vista 64 Bits, I have a error when I try to convert a string "97722694578" to a integer, the value of variable is modified to 2147483647 (int limit of php). I'd have this problem when I try to send the value to a Web Service (APS.NET/C#) with the SoapClass of PHP, how the parameter on WS is a "long" the PHP tried to convert to a integer, then the value is modified to 2147483647. Soluction: Convert the variable to "float" on PHP before send's to WS. That works :D. Thank you Reproduce code: --------------- $variable = "97722694578"; settype($variable, "float"); and send to WS. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45058&edit=1