Bug #70900 [Com]: SoapClient systematic out of memory error
| From: | benjamin dot morel at gmail dot com | Date: | Thu, 12 Nov 2015 10:37:24 +0000 |
| Subject: | Bug #70900 [Com]: SoapClient systematic out of memory error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-197195@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
Comment by: benjamin dot morel at gmail dot com
Reported by: benjamin dot morel at gmail dot com
Summary: SoapClient systematic out of memory error
Status: Open
Type: Bug
Package: SOAP related
Operating System: Fedora 23
PHP Version: 7.0.0RC7
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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