Skip to content

Commit 533f135

Browse files
committed
Remove unnecessary stack
1 parent ad9b13e commit 533f135

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

Zend/zend_execute_API.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ void init_executor(CLS_D ELS_DC)
7474
EG(error_zval).refcount = 1;
7575
EG(error_zval).is_ref=0;
7676
EG(error_zval_ptr)=&EG(error_zval);
77-
zend_ptr_stack_init(&EG(function_symbol_table_stack));
7877
zend_ptr_stack_init(&EG(arg_types_stack));
7978
zend_stack_init(&EG(overloaded_objects_stack));
8079
original_sigsegv_handler = signal(SIGSEGV, zend_handle_sigsegv);
@@ -112,7 +111,6 @@ void init_executor(CLS_D ELS_DC)
112111

113112
void shutdown_executor(ELS_D)
114113
{
115-
zend_ptr_stack_destroy(&EG(function_symbol_table_stack));
116114
zend_ptr_stack_destroy(&EG(arg_types_stack));
117115
zend_stack_destroy(&EG(overloaded_objects_stack));
118116

@@ -280,7 +278,6 @@ int call_user_function(HashTable *function_table, zval *object, zval *function_n
280278
return FAILURE;
281279
}
282280

283-
zend_ptr_stack_push(&EG(function_symbol_table_stack), function_state.function_symbol_table);
284281
function_state.function_symbol_table = (HashTable *) emalloc(sizeof(HashTable));
285282
zend_hash_init(function_state.function_symbol_table, 0, NULL, PVAL_PTR_DTOR, 0);
286283

@@ -326,7 +323,6 @@ int call_user_function(HashTable *function_table, zval *object, zval *function_n
326323
efree(EG(active_symbol_table));
327324
EG(active_symbol_table) = calling_symbol_table;
328325
EG(function_state_ptr) = original_function_state_ptr;
329-
function_state.function_symbol_table = zend_ptr_stack_pop(&EG(function_symbol_table_stack));
330326

331327
return SUCCESS;
332328
}

Zend/zend_globals.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ struct _zend_executor_globals {
148148
zval *error_zval_ptr;
149149

150150
zend_function_state *function_state_ptr;
151-
zend_ptr_stack function_symbol_table_stack;
152151
zend_ptr_stack arg_types_stack;
153152
zend_stack overloaded_objects_stack;
154153
zval global_return_value;

0 commit comments

Comments
 (0)