From c9415522a99a32717f2d3277bbf5d601db9a3a37 Mon Sep 17 00:00:00 2001 From: Arjen Brouwer Date: Mon, 21 Nov 2011 23:56:11 +0100 Subject: [PATCH] Removed globals --- ext/twig/php_twig.h | 3 --- ext/twig/twig.c | 8 -------- 2 files changed, 0 insertions(+), 11 deletions(-) diff --git a/ext/twig/php_twig.h b/ext/twig/php_twig.h index abacb57..75aabab 100644 --- a/ext/twig/php_twig.h +++ b/ext/twig/php_twig.h @@ -38,9 +38,6 @@ PHP_RINIT_FUNCTION(twig); PHP_RSHUTDOWN_FUNCTION(twig); PHP_MINFO_FUNCTION(twig); -ZEND_BEGIN_MODULE_GLOBALS(twig) -ZEND_END_MODULE_GLOBALS(twig) - #ifdef ZTS #define TWIG_G(v) TSRMG(twig_globals_id, zend_twig_globals *, v) #else diff --git a/ext/twig/twig.c b/ext/twig/twig.c index 4ceca77..6bf8265 100644 --- a/ext/twig/twig.c +++ b/ext/twig/twig.c @@ -64,19 +64,11 @@ zend_module_entry twig_module_entry = { ZEND_GET_MODULE(twig) #endif -ZEND_DECLARE_MODULE_GLOBALS(twig) - PHP_INI_BEGIN() PHP_INI_END() - -static void twig_init_globals(zend_twig_globals *twig_globals) -{ -} - PHP_MINIT_FUNCTION(twig) { - ZEND_INIT_MODULE_GLOBALS(twig, twig_init_globals, NULL); REGISTER_INI_ENTRIES(); return SUCCESS; -- 1.7.2.5