Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14801 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17197 invoked by uid 1010); 10 Feb 2005 18:37:00 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 17181 invoked by uid 1007); 10 Feb 2005 18:37:00 -0000 Message-ID: <20050210183700.17169.qmail@lists.php.net> To: internals@lists.php.net References: <200502100959.j1A9xiru020457@post.webmailer.de> <20050210103042.57056.qmail@lists.php.net> <420B7DAB.4050207@caedmon.net> Date: Thu, 10 Feb 2005 10:37:01 -0800 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Posted-By: 169.229.135.26 Subject: Re: [PHP-DEV] Re: How to unload a class From: pollita@php.net ("Sara Golemon") >> What would happen to the instanciated objects? > > Only allowing class unloading for classes that have no instantiated > objects would be an option. > And how would you know if it'd been instantiated? Even if you recursively looped through every variable hash from EG(symbol_table) on down, there'd still be the possibility that one or two objects would be hiding in a resource somewhere (i.e. php_stream_context). This is also why delete() doesn't (and likely won't ever) exist in PHP. Anyway, sounds like what he wants is classkit_import(). -Sara