Bug #70900 [Csd]: SoapClient systematic out of memory error
| From: | dmitry@php.net | Date: | Thu, 12 Nov 2015 17:39:24 +0000 |
| Subject: | Bug #70900 [Csd]: SoapClient systematic out of memory error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-197201@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70900&edit=1
ID: 70900
Updated by: dmitry@php.net
Reported by: benjamin dot morel at gmail dot com
Summary: SoapClient systematic out of memory error
Status: Closed
Type: Bug
Package: SOAP related
Operating System: Fedora 23
PHP Version: 5.6
Assigned To: dmitry
Block user comment: N
Private report: N
New Comment:
you'll have to manually clean WSDL cache (rm /tmp/wsdl-*) after update.
Previous Comments:
------------------------------------------------------------------------
[2015-11-12 17:37:34] dmitry@php.net
Automatic comment on behalf of dmitry@zend.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=f8bf9bd86bdeef33a48e43d772d8a25a4fe3e6ff
Log: Fixed bug #70900 (SoapClient systematic out of memory error)
------------------------------------------------------------------------
[2015-11-12 16:58:00] ab@php.net
@benjamin Thanks for the repro case.
So far I was checking, same is reproduceable with 5.6 as well. It has something to do with
serealization/deserealization of WSDL. Only reproduceable on second call after the cached WSDL gets
deserialized, so soap.wsdl_cache_dir=/some/valid/dir is required to repro.
Thanks.
------------------------------------------------------------------------
[2015-11-12 10:37:21] benjamin dot morel at gmail dot com
Actually this bug had already been reported as far as in PHP 7.0.0alpha2, but due to the original
reporter not answer the question, it's been closed:
https://bugs.php.net/bug.php?id=69942
But it's definitely still present in RC7.
Hopefully you'll be able to reproduce it with this one-liner.
------------------------------------------------------------------------
[2015-11-12 10:33:56] benjamin dot morel at gmail dot com
Description:
------------
I cannot instantiate a single SoapClient instance, without getting a memory error.
I raised memory_limit to 1GB, but this didn't change anything: now the library tries to
allocate 1.5GB of memory for some obscure reason.
Note that this occurs *before* the SOAP client downloads the WSDL file, as I get this exception in
less than 1ms.
Test script:
---------------
new \SoapClient(
'http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl'
);
Actual result:
--------------
SoapFault exception: [Client] Allowed memory size of 1073741824 bytes exhausted (tried to allocate
1644167200 bytes)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70900&edit=1