|  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
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 and

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

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-11 13:48 UTC]
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:

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="" xmlns:ns1=""><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]
We have a test for #30045 and it works perfectly fine here.
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-2021 The PHP Group
All rights reserved.
Last updated: Sun May 09 20:01:23 2021 UTC