mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
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.)
This commit is contained in:
parent
b6315d1c9b
commit
cf757f7c89
1 changed files with 0 additions and 12 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue