From cf757f7c89c7ccccd81601d89028df623e3629ed Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Fri, 4 Jun 1999 12:22:19 +0000 Subject: [PATCH] Fix that GLOBALS leak. We were explicitly adding GLOBALS to the main symbol table, but there's no reason to do it (INIT_GLOBALS takes care of it if necessary.) --- Zend/zend_execute_API.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 1589efdb19..3084dfaeae 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -100,18 +100,6 @@ void init_executor(CLS_D ELS_DC) EG(active_symbol_table) = &EG(symbol_table); zend_llist_apply(&zend_extensions, (void (*)(void *)) zend_extension_activator); - - /* $GLOBALS array */ - { - zval *globals = (zval *) emalloc(sizeof(zval)); - - globals->value.ht = &EG(symbol_table); - globals->type = IS_ARRAY; - globals->refcount = 1; - globals->is_ref = 0; - zend_hash_update(&EG(symbol_table), "GLOBALS", sizeof("GLOBALS"), &globals, sizeof(zval *), NULL); - } - EG(opline_ptr) = NULL; } -- 2.40.0