Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14912 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89538 invoked by uid 1010); 14 Feb 2005 03:38:20 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 89487 invoked by uid 1007); 14 Feb 2005 03:38:20 -0000 Message-ID: <20050214033820.89486.qmail@lists.php.net> To: internals@lists.php.net References: <01b401c51245$f2b44130$71f69d44@setechusa.com> Date: Sun, 13 Feb 2005 19:38:00 -0800 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-Posted-By: 64.142.6.231 Subject: Re: Extension Cleanup From: pollita@php.net ("Sara Golemon") > Is there a set of functions within an extension that is called > automatically > by the ZEND engine framework to "initialize" and "deinitailize" the > extension? > MINIT: Module Initialization (Called once when the PHP processor is started) RINIT: Request Initialization (Called at the start of every request) RSHUTDOWN: Request Shutdown (Called at the end of every request) MSHUTDOWN: Module Shutdown (Called when the PHP processor exits) > 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. > Resource dtors are also good for that kinda thing. -Sara