Re: cvs: php4 /ext/midgard midgard.c
| From: | Andi Gutmans | Date: | Thu, 22 Feb 2001 11:40:13 +0000 |
| Subject: | Re: cvs: php4 /ext/midgard midgard.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-4208@lists.php.net to get a copy of this message | ||
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) {NULL); Emile -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-cvs-unsubscribe@lists.php.net For additional commands, e-mail: php-cvs-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.netMidgardClassPtr *midgard_class;+ + MGDLS_FETCH(); + MGDG(rcfg) = NULL; + MGDG(dcfg) = NULL;ZEND_INIT_MODULE_GLOBALS(midgard, php_midgard_init_globals,