Re: Macros for global startup/shutdown functions

From: Date: Tue, 10 Dec 2002 12:32:22 +0000
Subject: Re: Macros for global startup/shutdown functions
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-92300@lists.php.net to get a copy of this message
Thanks, Derick! Does this also mean, that I can't "hardcode" this functionality? (ie. adding to functions to the zend_module_entry struct) As it is I actually have a use for this, and have succesfully compiled my extension with references to such hardcoded functions - allthough they don't seem to get called at this point! /Thomas Derick Rethans wrote: > On Tue, 10 Dec 2002, Thomas Wentzel wrote: > > > Hi! > > > > How come there are no macros for global startup and shutdown functions? > > The Zend API documentation refers to such terms and even instructs that > > one should > > use STANDARD_MODULE_PROPERTIES_EX instead of > > STANDARD_MODULE_PROPERTIES if global functions are to be used. > > I have even found references to ZEND_GINIT/GSHUTDOWN on the web, but... > > > > Admittedly, I haven't checked newer versions, but as I am using 4.1.2 > > and these terms > > have been used dating back to the 4.0 release this doesn't seem to be > > the issue. > > GINIT and GSHUTDOWN where removed about a year ago because they weren't > really used anyway, and had no real purpose anyway for them. *sigh* it > just shows that the docs are quite outdated; I'll have a look at it now. > > Derick > > -- > > ------------------------------------------------------------------------- > Derick Rethans > http://derickrethans.nl/ > PHP Magazine - PHP Magazine for Professionals > http://php-mag.net/ > -------------------------------------------------------------------------

« previous php.dev (#92300) next »