Bug #55453 [NEW]: SoapClient out of memory when SOAP_COMPRESSION_GZIP enabled
| From: | johnston dot joshua at gmail dot com | Date: | Thu, 18 Aug 2011 16:28:31 +0000 |
| Subject: | Bug #55453 [NEW]: SoapClient out of memory when SOAP_COMPRESSION_GZIP enabled | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-162664@lists.php.net to get a copy of this message | ||
From:
Operating system: 2.6.38-10-generic #46-Ubuntu
PHP version: 5.4.0alpha3
Package: SOAP related
Bug Type: Bug
Bug description:SoapClient out of memory when SOAP_COMPRESSION_GZIP enabled
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 bug report at https://bugs.php.net/bug.php?id=55453&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55453&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55453&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55453&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=55453&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55453&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=55453&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=55453&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=55453&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=55453&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=55453&r=support
Expected behavior: https://bugs.php.net/fix.php?id=55453&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=55453&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=55453&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=55453&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55453&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55453&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=55453&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=55453&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=55453&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=55453&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=55453&r=mysqlcfg