php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40099 Cannot pass long (> 2147483647) in SOAP requests
Submitted: 2007-01-11 13:35 UTC Modified: 2007-01-19 01:00 UTC
From: phpbugs at henrik dot synth dot no Assigned:
Status: No Feedback Package: SOAP related
PHP Version: 5.2.0 OS: MacOSX
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2007-01-11 13:35 UTC] phpbugs at henrik dot synth dot no
Description:
------------
It seems like numbers larger than 2^32 / 2 still are problem.

PHP should handle XSD_LONG, or at least throw a notice if it cannot.  Client was PHP 5.2.0, server was JbossWS 4.0.4GA, both on MacOSX.  Expected results are from the jboss soap debug log.

Also see http://bugs.php.net/bug.php?id=30045 and http://bugs.php.net/bug.php?id=36999

Reproduce code:
---------------
$typedVar = new SoapVar(1168516001677, XSD_UNSIGNEDLONG);
$client->__soapCall("myFunction", array($typedVar)) );


Expected result:
----------------
<Long_1>1168516001677</Long_1>

Actual result:
--------------
<Long_1>2147483647</Long_1>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-11 13:48 UTC] tony2001@php.net
Cannot reproduce.
 [2007-01-11 14:45 UTC] phpbugs at henrik dot synth dot no
I sniffed the SOAP call with tcpdump, here's the result:


Host: my.host:8080
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.2.0
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 367

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://com.my.ws/Domain"><SOAP-ENV:Header><ns1:sessionId>1</ns1:sessionId></SOAP-ENV:Header><SOAP-ENV:Body><ns1:myFunction><Long_1>2147483647</Long_1></ns1:myFunction></SOAP-ENV:Body></SOAP-ENV:Envelope>
 [2007-01-11 14:49 UTC] tony2001@php.net
We have a test for #30045 and it works perfectly fine here.
php-src/ext/soap/tests/bugs/bug30045.phpt
Please provide short but complete reproduce case, so that we can test it and see the problem ourselves.
 [2007-01-19 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Nov 22 05:01:23 2019 UTC