#19150 [NEW]: Overloaded COM Property Set Leaks Memory
| From: | msisolak at yahoo dot com | Date: | Wed, 28 Aug 2002 14:25:41 +0000 |
| Subject: | #19150 [NEW]: Overloaded COM Property Set Leaks Memory | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-18034@lists.php.net to get a copy of this message | ||
From: msisolak@yahoo.com
Operating system: Windows 2000
PHP version: 4.2.2
PHP Bug Type: COM related
Bug description: Overloaded COM Property Set Leaks Memory
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 bug report at http://bugs.php.net/?id=19150&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19150&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19150&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19150&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19150&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19150&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19150&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19150&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19150&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19150&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19150&r=globals