#40511 [Opn->Bgs]: __destruct() does not destroy vars $var
| From: | tony2001@php.net | Date: | Fri, 16 Feb 2007 20:12:03 +0000 |
| Subject: | #40511 [Opn->Bgs]: __destruct() does not destroy vars $var | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-109036@lists.php.net to get a copy of this message | ||
ID: 40511
Updated by: tony2001@php.net
Reported By: afuzaylov at mlgpro dot com
-Status: Open
+Status: Bogus
Bug Type: Class/Object related
Operating System: linux
PHP Version: 5.2.1
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Nope, it shouldn't.
Previous Comments:
------------------------------------------------------------------------
[2007-02-16 20:06:57] afuzaylov at mlgpro dot com
Description:
------------
I have a class that has __destruct() in there.
When I call the $process->__destruct(), shouldn't it destroy the whole
class, all the functions and variables associated with it and all the
com objects?
Reproduce code:
---------------
class CProcess {
var $fsize;
function __construct($fsize) {
$this->$fsize = $fsize;
}
function __destruct() {
}
}
$process = new CProcess(15);
$process->__destruct();
Expected result:
----------------
All the vars should be destroyed.
Actual result:
--------------
The vars stay in memory
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40511&edit=1