Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14797 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48235 invoked by uid 1010); 10 Feb 2005 15:29:41 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 48215 invoked from network); 10 Feb 2005 15:29:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Feb 2005 15:29:41 -0000 X-Host-Fingerprint: 69.60.120.90 iconoclast.caedmon.net Linux 2.4/2.6 Received: from ([69.60.120.90:52205] helo=iconoclast.caedmon.net) by pb1.pair.com (ecelerity HEAD (r4105:4106)) with SMTP id 9D/1B-10493-FDD7B024 for ; Thu, 10 Feb 2005 10:29:35 -0500 Received: from [10.20.31.100] (helo=[10.20.31.100]) by iconoclast.caedmon.net with esmtp (Exim 3.35 #1 (Debian)) id 1CzGFG-00065z-00; Thu, 10 Feb 2005 10:28:42 -0500 Message-ID: <420B7DAB.4050207@caedmon.net> Date: Thu, 10 Feb 2005 10:28:43 -0500 User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040830) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Johannes Schlueter CC: internals@lists.php.net, Carsten Harnisch References: <200502100959.j1A9xiru020457@post.webmailer.de> <20050210103042.57056.qmail@lists.php.net> In-Reply-To: <20050210103042.57056.qmail@lists.php.net> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: How to unload a class From: sean@caedmon.net (Sean Coates) Johannes Schlueter wrote: >>I would like to "unload" a class loaded previously by require_once. >>Mainly I am working on a daemon where handler-classes should be loaded and >>unloaded on demand. > > You could remove a class using classkit ... No, you could remove the methods that belong to the class and/or rename the class, but class removal isn't possible. (What would happen to the instanciated objects?) S