Lines Matching refs:EG

73 				active_opline-EG(active_op_array)->opcodes,
133 INIT_ZVAL(EG(uninitialized_zval)); in init_executor()
135 Z_ADDREF(EG(uninitialized_zval)); in init_executor()
136 INIT_ZVAL(EG(error_zval)); in init_executor()
137 EG(uninitialized_zval_ptr)=&EG(uninitialized_zval); in init_executor()
138 EG(error_zval_ptr)=&EG(error_zval); in init_executor()
139 zend_ptr_stack_init(&EG(arg_types_stack)); in init_executor()
144 EG(return_value_ptr_ptr) = NULL; in init_executor()
146 EG(symtable_cache_ptr) = EG(symtable_cache) - 1; in init_executor()
147 EG(symtable_cache_limit) = EG(symtable_cache) + SYMTABLE_CACHE_SIZE - 1; in init_executor()
148 EG(no_extensions) = 0; in init_executor()
150 EG(function_table) = CG(function_table); in init_executor()
151 EG(class_table) = CG(class_table); in init_executor()
153 EG(in_execution) = 0; in init_executor()
154 EG(in_autoload) = NULL; in init_executor()
155 EG(autoload_func) = NULL; in init_executor()
156 EG(error_handling) = EH_NORMAL; in init_executor()
161 zend_hash_init(&EG(symbol_table), 50, NULL, ZVAL_PTR_DTOR, 0); in init_executor()
162 EG(active_symbol_table) = &EG(symbol_table); in init_executor()
165 EG(opline_ptr) = NULL; in init_executor()
167 zend_hash_init(&EG(included_files), 5, NULL, NULL, 0); in init_executor()
169 EG(ticks_count) = 0; in init_executor()
171 EG(user_error_handler) = NULL; in init_executor()
173 EG(current_execute_data) = NULL; in init_executor()
175 zend_stack_init(&EG(user_error_handlers_error_reporting)); in init_executor()
176 zend_ptr_stack_init(&EG(user_error_handlers)); in init_executor()
177 zend_ptr_stack_init(&EG(user_exception_handlers)); in init_executor()
179 zend_objects_store_init(&EG(objects_store), 1024); in init_executor()
181 EG(full_tables_cleanup) = 0; in init_executor()
183 EG(timed_out) = 0; in init_executor()
186 EG(exception) = NULL; in init_executor()
187 EG(prev_exception) = NULL; in init_executor()
189 EG(scope) = NULL; in init_executor()
190 EG(called_scope) = NULL; in init_executor()
192 EG(This) = NULL; in init_executor()
194 EG(active_op_array) = NULL; in init_executor()
196 EG(active) = 1; in init_executor()
197 EG(start_op) = NULL; in init_executor()
216 symbols = zend_hash_num_elements(&EG(symbol_table)); in shutdown_destructors()
217 zend_hash_reverse_apply(&EG(symbol_table), (apply_func_t) zval_call_destructor TSRMLS_CC); in shutdown_destructors()
218 } while (symbols != zend_hash_num_elements(&EG(symbol_table))); in shutdown_destructors()
219 zend_objects_store_call_destructors(&EG(objects_store) TSRMLS_CC); in shutdown_destructors()
222 zend_objects_store_mark_destructed(&EG(objects_store) TSRMLS_CC); in shutdown_destructors()
247 zend_hash_graceful_reverse_destroy(&EG(symbol_table)); in shutdown_executor()
254 if (EG(user_error_handler)) { in shutdown_executor()
255 zeh = EG(user_error_handler); in shutdown_executor()
256 EG(user_error_handler) = NULL; in shutdown_executor()
260 if (EG(user_exception_handler)) { in shutdown_executor()
261 zeh = EG(user_exception_handler); in shutdown_executor()
262 EG(user_exception_handler) = NULL; in shutdown_executor()
266 zend_stack_destroy(&EG(user_error_handlers_error_reporting)); in shutdown_executor()
267 zend_stack_init(&EG(user_error_handlers_error_reporting)); in shutdown_executor()
268 zend_ptr_stack_clean(&EG(user_error_handlers), ZVAL_DESTRUCTOR, 1); in shutdown_executor()
269 zend_ptr_stack_clean(&EG(user_exception_handlers), ZVAL_DESTRUCTOR, 1); in shutdown_executor()
282 if (EG(full_tables_cleanup)) { in shutdown_executor()
283 zend_hash_apply(EG(function_table), (apply_func_t) zend_cleanup_function_data_full TSRMLS_CC); in shutdown_executor()
284 zend_hash_apply(EG(class_table), (apply_func_t) zend_cleanup_class_data TSRMLS_CC); in shutdown_executor()
286 zend_hash_reverse_apply(EG(function_table), (apply_func_t) zend_cleanup_function_data TSRMLS_CC); in shutdown_executor()
287 zend_hash_reverse_apply(EG(class_table), (apply_func_t) zend_cleanup_user_class_data TSRMLS_CC); in shutdown_executor()
295 zend_objects_store_free_object_storage(&EG(objects_store) TSRMLS_CC); in shutdown_executor()
298 if (EG(full_tables_cleanup)) { in shutdown_executor()
299 …zend_hash_reverse_apply(EG(function_table), (apply_func_t) clean_non_persistent_function_full TSRM… in shutdown_executor()
300 …zend_hash_reverse_apply(EG(class_table), (apply_func_t) clean_non_persistent_class_full TSRMLS_CC); in shutdown_executor()
302 …zend_hash_reverse_apply(EG(function_table), (apply_func_t) clean_non_persistent_function TSRMLS_CC… in shutdown_executor()
303 zend_hash_reverse_apply(EG(class_table), (apply_func_t) clean_non_persistent_class TSRMLS_CC); in shutdown_executor()
306 while (EG(symtable_cache_ptr)>=EG(symtable_cache)) { in shutdown_executor()
307 zend_hash_destroy(*EG(symtable_cache_ptr)); in shutdown_executor()
308 FREE_HASHTABLE(*EG(symtable_cache_ptr)); in shutdown_executor()
309 EG(symtable_cache_ptr)--; in shutdown_executor()
322 zend_hash_destroy(&EG(included_files)); in shutdown_executor()
324 zend_ptr_stack_destroy(&EG(arg_types_stack)); in shutdown_executor()
325 zend_stack_destroy(&EG(user_error_handlers_error_reporting)); in shutdown_executor()
326 zend_ptr_stack_destroy(&EG(user_error_handlers)); in shutdown_executor()
327 zend_ptr_stack_destroy(&EG(user_exception_handlers)); in shutdown_executor()
328 zend_objects_store_destroy(&EG(objects_store)); in shutdown_executor()
329 if (EG(in_autoload)) { in shutdown_executor()
330 zend_hash_destroy(EG(in_autoload)); in shutdown_executor()
331 FREE_HASHTABLE(EG(in_autoload)); in shutdown_executor()
337 EG(active) = 0; in shutdown_executor()
350 switch (EG(current_execute_data)->function_state.function->type) { in get_active_class_name()
354 zend_class_entry *ce = EG(current_execute_data)->function_state.function->common.scope; in get_active_class_name()
375 switch (EG(current_execute_data)->function_state.function->type) { in get_active_function_name()
377 …const char *function_name = ((zend_op_array *) EG(current_execute_data)->function_state.function)-… in get_active_function_name()
387 …return ((zend_internal_function *) EG(current_execute_data)->function_state.function)->function_na… in get_active_function_name()
397 if (EG(active_op_array)) { in zend_get_executed_filename()
398 return EG(active_op_array)->filename; in zend_get_executed_filename()
407 if(EG(exception) && EG(opline_ptr) && active_opline->opcode == ZEND_HANDLE_EXCEPTION && in zend_get_executed_lineno()
408 active_opline->lineno == 0 && EG(opline_before_exception)) { in zend_get_executed_lineno()
409 return EG(opline_before_exception)->lineno; in zend_get_executed_lineno()
411 if (EG(opline_ptr)) { in zend_get_executed_lineno()
421 return EG(in_execution); in zend_is_executing()
434 if (*zval_ptr != &EG(uninitialized_zval)) { in _zval_ptr_dtor()
769 if (!EG(active)) { in zend_call_function()
773 if (EG(exception)) { in zend_call_function()
786 if (EG(current_execute_data)) { in zend_call_function()
787 execute_data = *EG(current_execute_data); in zend_call_function()
833 …(!EG(objects_store).object_buckets || !EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(fci->object… in zend_call_function()
860 if (i || UNEXPECTED(ZEND_VM_STACK_ELEMETS(EG(argument_stack)) == (EG(argument_stack)->top))) { in zend_call_function()
891 } else if (*fci->params[i] != &EG(uninitialized_zval)) { in zend_call_function()
905 current_scope = EG(scope); in zend_call_function()
906 EG(scope) = calling_scope; in zend_call_function()
908 current_this = EG(This); in zend_call_function()
910 current_called_scope = EG(called_scope); in zend_call_function()
912 EG(called_scope) = called_scope; in zend_call_function()
914 EG(called_scope) = NULL; in zend_call_function()
919 EG(This) = NULL; in zend_call_function()
921 EG(This) = fci->object_ptr; in zend_call_function()
923 if (!PZVAL_IS_REF(EG(This))) { in zend_call_function()
924 Z_ADDREF_P(EG(This)); /* For $this pointer */ in zend_call_function()
929 *this_ptr = *EG(This); in zend_call_function()
932 EG(This) = this_ptr; in zend_call_function()
936 EG(This) = NULL; in zend_call_function()
939 EX(prev_execute_data) = EG(current_execute_data); in zend_call_function()
940 EG(current_execute_data) = &execute_data; in zend_call_function()
943 calling_symbol_table = EG(active_symbol_table); in zend_call_function()
944 EG(scope) = EX(function_state).function->common.scope; in zend_call_function()
946 EG(active_symbol_table) = fci->symbol_table; in zend_call_function()
948 EG(active_symbol_table) = NULL; in zend_call_function()
951 original_return_value = EG(return_value_ptr_ptr); in zend_call_function()
952 original_op_array = EG(active_op_array); in zend_call_function()
953 EG(return_value_ptr_ptr) = fci->retval_ptr_ptr; in zend_call_function()
954 EG(active_op_array) = (zend_op_array *) EX(function_state).function; in zend_call_function()
955 original_opline_ptr = EG(opline_ptr); in zend_call_function()
956 zend_execute(EG(active_op_array) TSRMLS_CC); in zend_call_function()
957 if (!fci->symbol_table && EG(active_symbol_table)) { in zend_call_function()
958 if (EG(symtable_cache_ptr)>=EG(symtable_cache_limit)) { in zend_call_function()
959 zend_hash_destroy(EG(active_symbol_table)); in zend_call_function()
960 FREE_HASHTABLE(EG(active_symbol_table)); in zend_call_function()
964 zend_hash_clean(EG(active_symbol_table)); in zend_call_function()
965 *(++EG(symtable_cache_ptr)) = EG(active_symbol_table); in zend_call_function()
968 EG(active_symbol_table) = calling_symbol_table; in zend_call_function()
969 EG(active_op_array) = original_op_array; in zend_call_function()
970 EG(return_value_ptr_ptr)=original_return_value; in zend_call_function()
971 EG(opline_ptr) = original_opline_ptr; in zend_call_function()
976 EG(scope) = EX(function_state).function->common.scope; in zend_call_function()
985 if (EG(exception) && fci->retval_ptr_ptr) { in zend_call_function()
1009 if (EG(exception) && fci->retval_ptr_ptr) { in zend_call_function()
1016 if (EG(This)) { in zend_call_function()
1017 zval_ptr_dtor(&EG(This)); in zend_call_function()
1019 EG(called_scope) = current_called_scope; in zend_call_function()
1020 EG(scope) = current_scope; in zend_call_function()
1021 EG(This) = current_this; in zend_call_function()
1022 EG(current_execute_data) = EX(prev_execute_data); in zend_call_function()
1024 if (EG(exception)) { in zend_call_function()
1067 if (zend_hash_quick_find(EG(class_table), lc_name, lc_length, hash, (void **) ce) == SUCCESS) { in zend_lookup_class_ex()
1092 if (EG(in_autoload) == NULL) { in zend_lookup_class_ex()
1093 ALLOC_HASHTABLE(EG(in_autoload)); in zend_lookup_class_ex()
1094 zend_hash_init(EG(in_autoload), 0, NULL, NULL, 0); in zend_lookup_class_ex()
1097 …if (zend_hash_quick_add(EG(in_autoload), lc_name, lc_length, hash, (void**)&dummy, sizeof(char), N… in zend_lookup_class_ex()
1117 fcall_info.function_table = EG(function_table); in zend_lookup_class_ex()
1126 fcall_cache.initialized = EG(autoload_func) ? 1 : 0; in zend_lookup_class_ex()
1127 fcall_cache.function_handler = EG(autoload_func); in zend_lookup_class_ex()
1136 EG(autoload_func) = fcall_cache.function_handler; in zend_lookup_class_ex()
1140 zend_hash_quick_del(EG(in_autoload), lc_name, lc_length, hash); in zend_lookup_class_ex()
1147 retval = zend_hash_quick_find(EG(class_table), lc_name, lc_length, hash, (void **) ce); in zend_lookup_class_ex()
1166 zend_op_array *original_active_op_array = EG(active_op_array); in zend_eval_stringl()
1192 zval **original_return_value_ptr_ptr = EG(return_value_ptr_ptr); in zend_eval_stringl()
1193 zend_op **original_opline_ptr = EG(opline_ptr); in zend_eval_stringl()
1196 EG(return_value_ptr_ptr) = &local_retval_ptr; in zend_eval_stringl()
1197 EG(active_op_array) = new_op_array; in zend_eval_stringl()
1198 EG(no_extensions)=1; in zend_eval_stringl()
1199 if (!EG(active_symbol_table)) { in zend_eval_stringl()
1225 EG(no_extensions)=0; in zend_eval_stringl()
1226 EG(opline_ptr) = original_opline_ptr; in zend_eval_stringl()
1227 EG(active_op_array) = original_active_op_array; in zend_eval_stringl()
1230 EG(return_value_ptr_ptr) = original_return_value_ptr_ptr; in zend_eval_stringl()
1253 if (handle_exceptions && EG(exception)) { in zend_eval_stringl_ex()
1254 zend_exception_error(EG(exception), E_ERROR TSRMLS_CC); in zend_eval_stringl_ex()
1283 …ret_opline->op1.constant = zend_add_literal(CG(active_op_array), &EG(uninitialized_zval) TSRMLS_CC… in execute_new_code()
1286 if (!EG(start_op)) { in execute_new_code()
1287 EG(start_op) = CG(active_op_array)->opcodes; in execute_new_code()
1290 opline=EG(start_op); in execute_new_code()
1324 EG(return_value_ptr_ptr) = NULL; in execute_new_code()
1325 EG(active_op_array) = CG(active_op_array); in execute_new_code()
1331 if (EG(exception)) { in execute_new_code()
1332 zend_exception_error(EG(exception), E_ERROR TSRMLS_CC); in execute_new_code()
1336 EG(start_op) = CG(active_op_array)->opcodes+CG(active_op_array)->last; in execute_new_code()
1354 zend_on_timeout(EG(timeout_seconds) TSRMLS_CC); in zend_timeout()
1357 …zend_error(E_ERROR, "Maximum execution time of %d second%s exceeded", EG(timeout_seconds), EG(time… in zend_timeout()
1384 EG(timed_out) = 0; in zend_timeout_WndProc()
1402 EG(timed_out) = 1; in zend_timeout_WndProc()
1478 EG(timeout_seconds) = seconds; in zend_set_timeout()
1537 if (EG(timeout_seconds)) { in zend_unset_timeout()
1564 if (!EG(scope)) { in zend_fetch_class()
1567 return EG(scope); in zend_fetch_class()
1569 if (!EG(scope)) { in zend_fetch_class()
1572 if (!EG(scope)->parent) { in zend_fetch_class()
1575 return EG(scope)->parent; in zend_fetch_class()
1577 if (!EG(called_scope)) { in zend_fetch_class()
1580 return EG(called_scope); in zend_fetch_class()
1592 if (!silent && !EG(exception)) { in zend_fetch_class()
1615 if ((fetch_type & ZEND_FETCH_CLASS_SILENT) == 0 && !EG(exception)) { in zend_fetch_class_by_name()
1693 for (ex = EG(current_execute_data); ex; ex = ex->prev_execute_data) { in zend_reset_all_cv()
1730 if (zend_hash_quick_exists(&EG(symbol_table), name, name_len + 1, hash_value)) { in zend_delete_global_variable_ex()
1731 for (ex = EG(current_execute_data); ex; ex = ex->prev_execute_data) { in zend_delete_global_variable_ex()
1732 if (ex->op_array && ex->symbol_table == &EG(symbol_table)) { in zend_delete_global_variable_ex()
1745 return zend_hash_quick_del(&EG(symbol_table), name, name_len + 1, hash_value); in zend_delete_global_variable_ex()
1762 if (!EG(active_symbol_table)) { in zend_rebuild_symbol_table()
1765 ex = EG(current_execute_data); in zend_rebuild_symbol_table()
1770 EG(active_symbol_table) = ex->symbol_table; in zend_rebuild_symbol_table()
1775 if (EG(symtable_cache_ptr)>=EG(symtable_cache)) { in zend_rebuild_symbol_table()
1777 EG(active_symbol_table) = *(EG(symtable_cache_ptr)--); in zend_rebuild_symbol_table()
1779 ALLOC_HASHTABLE(EG(active_symbol_table)); in zend_rebuild_symbol_table()
1780 zend_hash_init(EG(active_symbol_table), ex->op_array->last_var, NULL, ZVAL_PTR_DTOR, 0); in zend_rebuild_symbol_table()
1783 ex->symbol_table = EG(active_symbol_table); in zend_rebuild_symbol_table()
1787 EG(This)) { in zend_rebuild_symbol_table()
1789 *ex->CVs[ex->op_array->this_var] = EG(This); in zend_rebuild_symbol_table()
1793 zend_hash_quick_update(EG(active_symbol_table), in zend_rebuild_symbol_table()