#35091 [Asn->Csd]: SoapClient leaks memory

From: Date: Mon, 07 Nov 2005 10:11:33 +0000
Subject: #35091 [Asn->Csd]: SoapClient leaks memory
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-87745@lists.php.net to get a copy of this message
 ID:               35091
 Updated by:       dmitry@php.net
 Reported By:      paul at paulbutcher dot com
-Status:           Assigned
+Status:           Closed
 Bug Type:         SOAP related
 Operating System: *
 PHP Version:      5CVS-2005-11-04 (snap)
 Assigned To:      dmitry
 New Comment:

Fixed in CVS HEAD and PHP_5_1.


Previous Comments:
------------------------------------------------------------------------

[2005-11-04 12:37:06] sniper@php.net

Dmitry, can you check this out please.


------------------------------------------------------------------------

[2005-11-03 19:52:18] paul at paulbutcher dot com

Description:
------------
SoapClient doesn't seem to clean up after itself when garbage
collected. It leaks something around 4K each time. Tested on both
Windows and Linux.

Reproduce code:
---------------
<?php
while(true) {
    new SoapClient("test.wsdl");
}
?>


Expected result:
----------------
Assuming that I understand the PHP Garbage Collector (and it's possible
that I don't - I'm struggling to find any good documentation on exactly
how I should expect it to behave - any pointers very welcome!), I would
expect the memory usage of this script to be constant.

Actual result:
--------------
The memory usage increases very quickly (growing to several hundred
megabytes in less than a minute).


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35091&edit=1


Thread (7 messages)

« previous php.bugs (#87745) next »