Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14911 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69641 invoked by uid 1010); 14 Feb 2005 03:33:56 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 69626 invoked from network); 14 Feb 2005 03:33:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Feb 2005 03:33:56 -0000 X-Host-Fingerprint: 68.157.246.80 mx1.distinctinnovations.com Windows 2000 SP4, XP SP1 Received: from ([68.157.246.80:1881] helo=distinctinnovations.com) by pb1.pair.com (ecelerity 1.2.11 (r4403)) with SMTP id CD/15-13978-32C10124 for ; Sun, 13 Feb 2005 22:33:55 -0500 Received: by distinctinnovations.com (Wildcat! SMTP Router v6.0.451.3) for internals@lists.php.net; Sun, 13 Feb 2005 22:35:48 -0500 Received: from ns2.distinctinnovations.com ([68.157.246.71]) EHLO=cl1823 by distinctinnovations.com (Wildcat! SMTP v6.0.451.3) with SMTP id 1047722985; Sun, 13 Feb 2005 22:35:46 -0500 Message-ID: <01b401c51245$f2b44130$71f69d44@setechusa.com> To: Date: Sun, 13 Feb 2005 22:33:28 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 X-Antivirus-Remover: Message filtered with wsAV v2.0.0 Build 001 Subject: Extension Cleanup From: chris.cranford@tkdsoftware.com ("Chris Cranford") Is there a set of functions within an extension that is called automatically by the ZEND engine framework to "initialize" and "deinitailize" the extension? In a particular PHP script, a user may call a method that sets up an environment. I cannot always rely on the user to call the cleanup API method at the end of the script. In that event, I would like my extension to automatically cleanup after itself when the script completes. Is there anyway to do this?