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 <[EMAIL PROTECTED]>
Copyright (C) 2000 The Midgard Project ry
Copyright (C) 2000 Emile Heyns, Aurora SA <[EMAIL PROTECTED]>
@@ -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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]