#21269 [Opn]: Memory leak with Windows COM-Support?

From: Date: Sun, 29 Dec 2002 18:28:27 +0000
Subject: #21269 [Opn]: Memory leak with Windows COM-Support?
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-28688@lists.php.net to get a copy of this message
 ID:               21269
 User updated by:  nbi@gmx.de
 Reported By:      nbi@gmx.de
 Status:           Open
-Bug Type:         Unknown/Other Function
+Bug Type:         COM related
 Operating System: Windows XP Pro
 PHP Version:      4.2.2
 New Comment:

The problem still appears in PHP 4.3.0


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

[2002-12-29 11:15:10] nbi@gmx.de

COM-Support on Apache 1.3.27 with PHP 4.2.2 (as Apache dso) seems to
have a memory leak. Every time I run the following code, memory usage
of Apache is increased by about 86 kB:

$cid = new COM('ADODB.Connection');
$cid->Open ("File Name=udlfile.udl");
$rid = $cid->Execute ("SELECT * FROM test");

$rid->Close();
$rid->Release();
$rid = NULL;
unset ($rid);

$cid->Close();
$cid->Release();
$cid = NULL;
unset ($cid);

Is it really a memory leak or just my way of trying to free memory
resources?

Cheers, Norbert


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


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



Thread (4 messages)

« previous php.bugs (#28688) next »