Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14827 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56259 invoked by uid 1010); 11 Feb 2005 15:53:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 56240 invoked from network); 11 Feb 2005 15:53:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Feb 2005 15:53:45 -0000 X-Host-Fingerprint: 66.80.117.3 longsword.omniti.com Linux 2.4/2.6 Received: from ([66.80.117.3:57824] helo=mail.omniti.com) by pb1.pair.com (ecelerity 1.2.11 (r4403)) with SMTP id 38/23-29971-805DC024 for ; Fri, 11 Feb 2005 10:53:45 -0500 DomainKey-Status: good DomainKey-Signature: q=dns; a=rsa-sha1; c=nofws; s=test; d=omniti.com; h=Received:In-Reply-To:References:Mime-Version:Content-Type:Message-Id:Content-Transfer-Encoding:Cc:From:Subject:Date:To:X-Mailer; b=MO1wE/99PmzxcsWqEmB1kJGUzsE0gXupkFSqVozR+SMH67d5AdYCzE3D/tACmUqB Gd5LsMARZfmPvwVhO6J/GRI9f5KzwpYp5VkKDMxJc99MkIXxWh8/6SvJBymVrZAw Received: from ([66.80.117.2:56094] helo=[10.80.116.150]) by mail.omniti.com (ecelerity HEAD) with SMTP id E4/DA-22836-AF4DC024 for ; Fri, 11 Feb 2005 10:53:33 -0500 In-Reply-To: <420C5DDF.8080504@fischer.name> References: <200502100959.j1A9xiru020457@post.webmailer.de> <20050210103042.57056.qmail@lists.php.net> <420B7DAB.4050207@caedmon.net> <20050210183700.17169.qmail@lists.php.net> <420C5DDF.8080504@fischer.name> Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: <87696a01fa8807cc896ba9791fff92e7@omniti.com> Content-Transfer-Encoding: 7bit Cc: George Schlossnagle , internals@lists.php.net Date: Fri, 11 Feb 2005 10:51:51 -0500 To: Markus Fischer X-Mailer: Apple Mail (2.619.2) Subject: Re: [PHP-DEV] Re: How to unload a class From: george@omniti.com (George Schlossnagle) On Feb 11, 2005, at 2:25 AM, Markus Fischer wrote: > Sara Golemon wrote: >>>> 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). > > Is there a technical limitation to loop through every internal hash > which could possible hold an instantiated object? Yes. There are obscure, arbitrary places these things can live. George