Yes. It will call your init_globals just in time, usually on your first 
access to the data if I remember correctly. Your fix is correct. I didn't 
see it when I sent that Email.

Andi

At 12:37 PM 2/22/2001 +0100, Emiliano wrote:
>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]


-- 
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