Bug #55453 [Opn]: SoapClient out of memory when SOAP_COMPRESSION_GZIP enabled
| From: | johnston dot joshua at gmail dot com | Date: | Thu, 18 Aug 2011 16:29:16 +0000 |
| Subject: | Bug #55453 [Opn]: SoapClient out of memory when SOAP_COMPRESSION_GZIP enabled | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-162665@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55453&edit=1
ID: 55453
User updated by: johnston dot joshua at gmail 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.4.0alpha3
+PHP Version: 5.3.5
Block user comment: N
Private report: N
New Comment:
Updating to real php version since you can't select < 5.4 on create
Previous Comments:
------------------------------------------------------------------------
[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