summaryrefslogtreecommitdiff
path: root/Zend/zend_execute_API.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-04-12 21:50:49 +0000
committerZeev Suraski <zeev@php.net>1999-04-12 21:50:49 +0000
commit533f135987738074fab0ac17560274d89f33584c (patch)
tree88b27d8843df7088a143459aa3c5bcf09b6b274d /Zend/zend_execute_API.c
parentad9b13eb9e1783a25d20d362a8ec6c21f49fc62f (diff)
downloadphp-git-533f135987738074fab0ac17560274d89f33584c.tar.gz
Remove unnecessary stack
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r--Zend/zend_execute_API.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c
index a544597bfa..728e531a59 100644
--- a/Zend/zend_execute_API.c
+++ b/Zend/zend_execute_API.c
@@ -74,7 +74,6 @@ void init_executor(CLS_D ELS_DC)
EG(error_zval).refcount = 1;
EG(error_zval).is_ref=0;
EG(error_zval_ptr)=&EG(error_zval);
- zend_ptr_stack_init(&EG(function_symbol_table_stack));
zend_ptr_stack_init(&EG(arg_types_stack));
zend_stack_init(&EG(overloaded_objects_stack));
original_sigsegv_handler = signal(SIGSEGV, zend_handle_sigsegv);
@@ -112,7 +111,6 @@ void init_executor(CLS_D ELS_DC)
void shutdown_executor(ELS_D)
{
- zend_ptr_stack_destroy(&EG(function_symbol_table_stack));
zend_ptr_stack_destroy(&EG(arg_types_stack));
zend_stack_destroy(&EG(overloaded_objects_stack));
@@ -280,7 +278,6 @@ int call_user_function(HashTable *function_table, zval *object, zval *function_n
return FAILURE;
}
- zend_ptr_stack_push(&EG(function_symbol_table_stack), function_state.function_symbol_table);
function_state.function_symbol_table = (HashTable *) emalloc(sizeof(HashTable));
zend_hash_init(function_state.function_symbol_table, 0, NULL, PVAL_PTR_DTOR, 0);
@@ -326,7 +323,6 @@ int call_user_function(HashTable *function_table, zval *object, zval *function_n
efree(EG(active_symbol_table));
EG(active_symbol_table) = calling_symbol_table;
EG(function_state_ptr) = original_function_state_ptr;
- function_state.function_symbol_table = zend_ptr_stack_pop(&EG(function_symbol_table_stack));
return SUCCESS;
}