Edit report at https://bugs.php.net/bug.php?id=55453&edit=1
ID: 55453
Comment by: vvisina07 at yahoo dot com
Reported by: johnston dot joshua at gmail dot com
Summary: SoapClient out of memory when SOAP_COMPRESSION_GZIP
enabled
Status: Open
Type: Bug
Package: SOAP related
Operating System: 2.6.38-10-generic #46-Ubuntu
PHP Version: 5.3.5
Block user comment: N
Private report: N
New Comment:
http://www.torybuchoutletus.com/ Tory Burch Outlet
http://www.torybuchoutletshop.com/
Previous Comments:
------------------------------------------------------------------------
[2011-08-18 18:07:24] johnston dot joshua at gmail dot com
SOAP_COMPRESSION_DEFLATE or'd with a compression level works as expected.
------------------------------------------------------------------------
[2011-08-18 16:29:16] johnston dot joshua at gmail dot com
Updating to real php version since you can't select < 5.4 on create
------------------------------------------------------------------------
[2011-08-18 16:28:31] johnston dot joshua at gmail dot com
Description:
------------
Adding request compression either does not work or causes Fatal error: Out of
memory (allocated 2359296) (tried to allocate 18446744073709551596 bytes).
When I use the gzip flag in the compression options the client call fails with
an Out of memory notice (-1). If I use the deflate flag then nothing happens,
no request compression.
This looks like it might be a regression of
https://bugs.php.net/bug.php?id=36283
jjohnston@jjohnston:~$ php -v
PHP 5.3.5-1ubuntu7.2 with Suhosin-Patch (cli) (built: May 2 2011 23:00:17)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans
P.S. The earliest php version you can pick is 5.4.0alpha3. Why can't I pick a
recent stable php version?
Test script:
---------------
$client = new SoapClient(
"https://example.org/service.asmx?WSDL",
array(
'cache_wsdl' => WSDL_CACHE_DISK,
'connection_timeout' => '120',
'soap_version' => SOAP_1_1,
'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP
| 5
)
);
$out = $client->MethodCall(array(
'type' => 'test'
));
Expected result:
----------------
I expect the request to work and be compressed
Actual result:
--------------
Fatal error: Out of memory (allocated 2359296) (tried to allocate
18446744073709551596 bytes)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55453&edit=1