ID: 40511 User updated by: afuzaylov at mlgpro dot com Reported By: afuzaylov at mlgpro dot com -Status: Bogus +Status: Open Bug Type: Class/Object related Operating System: linux PHP Version: 5.2.1 New Comment:
Then how do I destroy the class completely? I need it destroyed to continue with the next statement... Previous Comments: ------------------------------------------------------------------------ [2007-02-16 20:12:03] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [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