Edit report at https://bugs.php.net/bug.php?id=47624&edit=1
ID: 47624
Updated by: cmb@php.net
Reported by: akshah123 at hotmail dot com
Summary: SOAP response has int type for a key value that is
out of range
-Status: Open
+Status: Verified
Type: Bug
Package: SOAP related
-Operating System: Linux
+Operating System: *
-PHP Version: 5.3.1
+PHP Version: 5.6.11
Block user comment: N
Private report: N
New Comment:
I've made some tests with recent PHP versions (5.6.11 and
7.0.0beta1). On architectures where a PHP integer is 64bit, the
argument has type xsd:int in the request envelope. This is clearly
wrong, as xsd:int is a 32bit integer; it should be xsd:long. Where
a PHP integer is 32bit, the argument has type xsd:float, what is
not necessarly wrong per se. So much about the client.
The server obviously can't deal with xsd:float here. On 5.6.11 Win
x86, the error that has been reported is thrown; on 7.0.0beta1 Win
x86 PHP crashes.
When the argument is encoded as xsd:int, we see an overflow
(3916774700) (PHP 7.0.0beta1 on Win x64 and PHP 5.6.11 on Linux
x64), whereby PHP 5.6.11 additionally raises "Function
("getAssetPathInfo") is not a valid method for this service)".
Only PHP 7 on Linux x64 yields the "expected" result.
Related to bug #48717.
Previous Comments:
------------------------------------------------------------------------
[2013-02-18 14:21:19] exander77 at gmail dot com
What the hell is wrong with this project, four years and it is not fixed?
------------------------------------------------------------------------
[2010-12-20 14:58:34] dmitry dot revenko at gmail dot com
Just encountered the same problem. It's a shame this not fixed till now. Don't even know -
what should I do with it now.
------------------------------------------------------------------------
[2010-02-04 22:50:05] akshah123 at hotmail dot com
The problem persists with php 5.3.1 as well.
------------------------------------------------------------------------
[2009-11-10 15:42:56] akshah123 at hotmail dot com
I have tested this with 5.2.11 and the issue is there as well. Please
let me know if I can provide any additional information that would help
resolve this issue.
I cannot upgrade my system and use cool new features in PHP 5.3 as this
is blocking a major functionality in the application.
Thanks.
------------------------------------------------------------------------
[2009-09-10 20:00:45] akshah123 at hotmail dot com
The script on server side (temp.php): http://pastie.org/612784
The client side script to test: http://pastie.org/612787
Again, the error is:
/Reports/test.php line 5 - SOAP-ERROR: Encoding: Can't decode apache
map, only Strings or Longs are allowd as keys.
Using the __getLastResponse() function I received following xml:
http://pastie.org/612791
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=47624
--
Edit this bug report at https://bugs.php.net/bug.php?id=47624&edit=1