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

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to