#19150 [Opn]: Overloaded COM Property Set Leaks Memory
| From: | kalowsky@php.net | Date: | Wed, 28 Aug 2002 16:33:50 +0000 |
| Subject: | #19150 [Opn]: Overloaded COM Property Set Leaks Memory | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-18054@lists.php.net to get a copy of this message | ||
ID: 19150
Updated by: kalowsky@php.net
Reported By: msisolak@yahoo.com
Status: Open
Bug Type: COM related
Operating System: Windows 2000
-PHP Version: 4.2.2
+PHP Version: 4.2.2, 4.3.0-dev
New Comment:
updating version
Previous Comments:
------------------------------------------------------------------------
[2002-08-28 10:27:20] msisolak@yahoo.com
I did confirm that the bug exists in the current HEAD branch, but was
unable to confirm the fix as the com_invoke call would fail.
------------------------------------------------------------------------
[2002-08-28 10:25:41] msisolak@yahoo.com
If a COM property set is called on an overloaded object that was
created by a COM method call, memory leaks (as identified by an ever
growing DLLHOST memory size under the ISAPI filter). This does not
happen if you use the functional COM interface.
This will leak:
$xml = new COM("MSXML.DOMDocument");
$element = $xml->createElement("test");
$element->text = str_repeat("this is a text string!", 100);
$element->Release();
$xml->Release();
but this doesn't:
$xml = new COM("MSXML.DOMDocument");
$element = com_invoke($xml, "createElement", "test");
com_set($element, "text", str_repeat("this is a text string!", 100));
com_release($element);
$xml->Release();
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19150&edit=1