php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74119 Memleak in SoapClient
Submitted: 2017-02-17 12:49 UTC Modified: 2018-01-01 21:13 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: valov at mtsbank dot ru Assigned:
Status: Duplicate Package: SOAP related
PHP Version: 7.1.9 OS: Linux
Private report: No CVE-ID: None
 [2017-02-17 12:49 UTC] valov at mtsbank dot ru
Description:
------------
Memleak in SoapClient detected, in test script after few seconds you will get error: "Allowed memory size exhausted".


Test script:
---------------
<?php
while(true) {
  $client = new SoapClient("test.wsdl");
}
?>

You can use any test.wsdl specification, for example https://www.tutorialspoint.com/wsdl/wsdl_example.htm



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-02-20 14:35 UTC] andrew dot nester dot dev at gmail dot com
I was unable to reproduce this on 7.0+ versions. Could you please try and confirm it?
Sadly 5.6 branch now accepts only security fixes.
 [2017-09-14 10:05 UTC] valov at mtsbank dot ru
-PHP Version: 5.6.30 +PHP Version: 7.1.9
 [2017-09-14 10:05 UTC] valov at mtsbank dot ru
Hi,

Yes, I reproduced this error on php 7.1.9 - the same error appeared after few seconds.
 [2018-01-01 21:13 UTC] nikic@php.net
-Status: Open +Status: Duplicate
 [2018-01-01 21:13 UTC] nikic@php.net
Duplicate of bug #75306.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 14:01:29 2024 UTC