|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-02-16 20:12 UTC] tony2001@php.net
[2007-02-16 20:14 UTC] afuzaylov at mlgpro dot com
[2007-02-16 20:29 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 09:00:01 2025 UTC |
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