summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-07-10 11:47:16 +0000
committerZeev Suraski <zeev@php.net>1999-07-10 11:47:16 +0000
commit909590ba7b8103769dd2422999a90cdceb9dc349 (patch)
tree2c11b3e7a354832aa1938e426daf382a206ec849 /Zend
parentcccd2445ee690c1e954af0189e40a20f34ddb0f9 (diff)
downloadphp-git-909590ba7b8103769dd2422999a90cdceb9dc349.tar.gz
Put the garbage in the garbage bin
Diffstat (limited to 'Zend')
-rw-r--r--Zend/zend_execute.c7
-rw-r--r--Zend/zend_execute_API.c3
-rw-r--r--Zend/zend_globals.h2
3 files changed, 0 insertions, 12 deletions
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c
index bbee78b98b..fc3a9a8d74 100644
--- a/Zend/zend_execute.c
+++ b/Zend/zend_execute.c
@@ -28,13 +28,6 @@
#include "zend_extensions.h"
-static void destroy_garbage(HashTable *ht)
-{
- zend_hash_destroy(ht);
- efree(ht);
-}
-
-
#define SELECTIVE_PZVAL_LOCK(pzv, pzn) if (!((pzn)->u.EA.type & EXT_TYPE_UNUSED)) { PZVAL_LOCK(pzv); }
#define get_zval_ptr(node, Ts, should_free, type) _get_zval_ptr(node, Ts, should_free ELS_CC)
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c
index 7f7f292a8f..5832e53199 100644
--- a/Zend/zend_execute_API.c
+++ b/Zend/zend_execute_API.c
@@ -102,8 +102,6 @@ void init_executor(CLS_D ELS_DC)
zend_ptr_stack_init(&EG(argument_stack));
- zend_ptr_stack_init(&EG(garbage));
-
EG(main_op_array) = NULL;
zend_hash_init(&EG(symbol_table), 50, NULL, PVAL_PTR_DTOR, 0);
EG(active_symbol_table) = &EG(symbol_table);
@@ -124,7 +122,6 @@ void shutdown_executor(ELS_D)
EG(symtable_cache_ptr)--;
}
zend_llist_apply(&zend_extensions, (void (*)(void *)) zend_extension_deactivator);
- zend_ptr_stack_destroy(&EG(garbage));
zend_hash_destroy(&EG(symbol_table));
diff --git a/Zend/zend_globals.h b/Zend/zend_globals.h
index cba0f45358..b7791a2c35 100644
--- a/Zend/zend_globals.h
+++ b/Zend/zend_globals.h
@@ -196,8 +196,6 @@ struct _zend_executor_globals {
long precision;
- zend_ptr_stack garbage;
-
/* for extended information support */
unsigned char no_extensions;