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

From: Date: Thu, 22 Feb 2001 11:26:45 +0000
Subject: Re: cvs: php4 /ext/midgard midgard.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-4203@lists.php.net to get a copy of this message
You only have the module globals during requests (rinit/rshutdown). You can't access them in module init/module shutdown. Andi At 11:35 PM 2/20/2001 +0000, Emiliano Heyns wrote:
emile           Tue Feb 20 15:35:35 2001 EDT
Modified files:
    /php4/ext/midgard   midgard.c
Log: Initialize globals to NULL at module init Index: php4/ext/midgard/midgard.c diff -u php4/ext/midgard/midgard.c:1.5 php4/ext/midgard/midgard.c:1.6
--- php4/ext/midgard/midgard.c:1.5      Sun Feb 18 10:45:24 2001
+++ php4/ext/midgard/midgard.c Tue Feb 20 15:35:35 2001 @@ -1,4 +1,4 @@ -/* $Id: midgard.c,v 1.5 2001/02/18 18:45:24 davidg Exp $ +/* $Id: midgard.c,v 1.6 2001/02/20 23:35:35 emile Exp $ Copyright (C) 1999 Jukka Zitting <jukka.zitting@iki.fi> Copyright (C) 2000 The Midgard Project ry Copyright (C) 2000 Emile Heyns, Aurora SA <emile@iris-advies.com> @@ -319,6 +319,10 @@ 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);
/* Remove comments if you have entries in php.ini -- 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.net


« previous php.cvs (#4203) next »