ID:               40511
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to