Re: cvs: php4 /ext/midgard midgard.c

From: Date: Thu, 22 Feb 2001 11:37:31 +0000
Subject: Re: cvs: php4 /ext/midgard midgard.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-4206@lists.php.net to get a copy of this message
Andi Gutmans wrote: > > You only have the module globals during requests (rinit/rshutdown). You > can't access them in module init/module shutdown. Yeah, I realized that moments later and removed it. But ZEND_INIT_MODULE_GLOBALS will call the init_globals function before the request starts, right? > > PHP_MINIT_FUNCTION(midgard) > > { > > MidgardClassPtr *midgard_class; > >+ > >+ MGDLS_FETCH(); > >+ MGDG(rcfg) = NULL; > >+ MGDG(dcfg) = NULL; > > > > ZEND_INIT_MODULE_GLOBALS(midgard, php_midgard_init_globals, NULL); Emile

« previous php.cvs (#4206) next »