Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14787 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18294 invoked by uid 1010); 10 Feb 2005 09:59:49 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 18279 invoked from network); 10 Feb 2005 09:59:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Feb 2005 09:59:49 -0000 X-Host-Fingerprint: 81.169.145.162 natjimbo.rzone.de Solaris 8 (1) Received: from ([81.169.145.162:43074] helo=natjimbo.rzone.de) by pb1.pair.com (ecelerity HEAD (r4105:4106)) with SMTP id 8F/16-23634-4903B024 for ; Thu, 10 Feb 2005 04:59:49 -0500 Received: from montreal (xdsl-213-196-204-59.netcologne.de [213.196.204.59]) by post.webmailer.de (8.13.1/8.13.1) with ESMTP id j1A9xiru020457 for ; Thu, 10 Feb 2005 10:59:45 +0100 (MET) Message-ID: <200502100959.j1A9xiru020457@post.webmailer.de> To: Date: Thu, 10 Feb 2005 10:59:52 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcUPV0NNI0S1MJHgQy2WpVX+UHNU4g== Subject: How to unload a class From: c.harnisch@harnisch-consulting.de ("Carsten Harnisch") 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. I did not find a way to drop a class from memory and reload it again from a (maybe changed) file. There are some work-a-rounds on the net like using eval or create_function. But is there any clean way to drop a class ? Carsten