Lines Matching refs:EG
77 active_opline-EG(active_op_array)->opcodes,
134 ZVAL_NULL(&EG(uninitialized_zval)); in init_executor()
135 ZVAL_ERROR(&EG(error_zval)); in init_executor()
141 EG(symtable_cache_ptr) = EG(symtable_cache); in init_executor()
142 EG(symtable_cache_limit) = EG(symtable_cache) + SYMTABLE_CACHE_SIZE; in init_executor()
143 EG(no_extensions) = 0; in init_executor()
145 EG(function_table) = CG(function_table); in init_executor()
146 EG(class_table) = CG(class_table); in init_executor()
148 EG(in_autoload) = NULL; in init_executor()
149 EG(error_handling) = EH_NORMAL; in init_executor()
150 EG(flags) = EG_FLAGS_INITIAL; in init_executor()
154 zend_hash_init(&EG(symbol_table), 64, NULL, ZVAL_PTR_DTOR, 0); in init_executor()
158 zend_hash_init(&EG(included_files), 8, NULL, NULL, 0); in init_executor()
160 EG(ticks_count) = 0; in init_executor()
162 ZVAL_UNDEF(&EG(user_error_handler)); in init_executor()
163 ZVAL_UNDEF(&EG(user_exception_handler)); in init_executor()
165 EG(current_execute_data) = NULL; in init_executor()
167 zend_stack_init(&EG(user_error_handlers_error_reporting), sizeof(int)); in init_executor()
168 zend_stack_init(&EG(user_error_handlers), sizeof(zval)); in init_executor()
169 zend_stack_init(&EG(user_exception_handlers), sizeof(zval)); in init_executor()
171 zend_objects_store_init(&EG(objects_store), 1024); in init_executor()
173 EG(full_tables_cleanup) = 0; in init_executor()
174 EG(vm_interrupt) = 0; in init_executor()
175 EG(timed_out) = 0; in init_executor()
177 EG(exception) = NULL; in init_executor()
178 EG(prev_exception) = NULL; in init_executor()
180 EG(fake_scope) = NULL; in init_executor()
181 EG(trampoline).common.function_name = NULL; in init_executor()
183 EG(ht_iterators_count) = sizeof(EG(ht_iterators_slots)) / sizeof(HashTableIterator); in init_executor()
184 EG(ht_iterators_used) = 0; in init_executor()
185 EG(ht_iterators) = EG(ht_iterators_slots); in init_executor()
186 memset(EG(ht_iterators), 0, sizeof(EG(ht_iterators_slots))); in init_executor()
188 EG(persistent_constants_count) = EG(zend_constants)->nNumUsed; in init_executor()
189 EG(persistent_functions_count) = EG(function_table)->nNumUsed; in init_executor()
190 EG(persistent_classes_count) = EG(class_table)->nNumUsed; in init_executor()
192 EG(get_gc_buffer).start = EG(get_gc_buffer).end = EG(get_gc_buffer).cur = NULL; in init_executor()
194 EG(record_errors) = false; in init_executor()
195 EG(num_errors) = 0; in init_executor()
196 EG(errors) = NULL; in init_executor()
202 EG(active) = 1; in init_executor()
250 EG(symbol_table).pDestructor = zend_unclean_zval_ptr_dtor; in shutdown_destructors()
255 symbols = zend_hash_num_elements(&EG(symbol_table)); in shutdown_destructors()
256 zend_hash_reverse_apply(&EG(symbol_table), (apply_func_t) zval_call_destructor); in shutdown_destructors()
257 } while (symbols != zend_hash_num_elements(&EG(symbol_table))); in shutdown_destructors()
258 zend_objects_store_call_destructors(&EG(objects_store)); in shutdown_destructors()
261 zend_objects_store_mark_destructed(&EG(objects_store)); in shutdown_destructors()
272 EG(flags) |= EG_FLAGS_IN_RESOURCE_SHUTDOWN; in zend_shutdown_executor_values()
274 zend_close_rsrc_list(&EG(regular_list)); in zend_shutdown_executor_values()
278 EG(active) = 0; in zend_shutdown_executor_values()
281 zend_hash_graceful_reverse_destroy(&EG(symbol_table)); in zend_shutdown_executor_values()
284 if (EG(full_tables_cleanup)) { in zend_shutdown_executor_values()
285 zend_hash_reverse_apply(EG(zend_constants), clean_non_persistent_constant_full); in zend_shutdown_executor_values()
287 ZEND_HASH_REVERSE_FOREACH_STR_KEY_VAL(EG(zend_constants), key, zv) { in zend_shutdown_executor_values()
289 if (_idx == EG(persistent_constants_count)) { in zend_shutdown_executor_values()
303 ZEND_HASH_REVERSE_FOREACH_VAL(EG(function_table), zv) { in zend_shutdown_executor_values()
316 ZEND_HASH_REVERSE_FOREACH_VAL(EG(class_table), zv) { in zend_shutdown_executor_values()
367 if (Z_TYPE(EG(user_error_handler)) != IS_UNDEF) { in zend_shutdown_executor_values()
368 zval_ptr_dtor(&EG(user_error_handler)); in zend_shutdown_executor_values()
369 ZVAL_UNDEF(&EG(user_error_handler)); in zend_shutdown_executor_values()
372 if (Z_TYPE(EG(user_exception_handler)) != IS_UNDEF) { in zend_shutdown_executor_values()
373 zval_ptr_dtor(&EG(user_exception_handler)); in zend_shutdown_executor_values()
374 ZVAL_UNDEF(&EG(user_exception_handler)); in zend_shutdown_executor_values()
377 zend_stack_clean(&EG(user_error_handlers_error_reporting), NULL, 1); in zend_shutdown_executor_values()
378 zend_stack_clean(&EG(user_error_handlers), (void (*)(void *))ZVAL_PTR_DTOR, 1); in zend_shutdown_executor_values()
379 zend_stack_clean(&EG(user_exception_handlers), (void (*)(void *))ZVAL_PTR_DTOR, 1); in zend_shutdown_executor_values()
387 zend_hash_discard(EG(zend_constants), EG(persistent_constants_count)); in zend_shutdown_executor_values()
390 zend_objects_store_free_object_storage(&EG(objects_store), fast_shutdown); in zend_shutdown_executor_values()
400 bool fast_shutdown = is_zend_mm() && !EG(full_tables_cleanup); in shutdown_executor()
423 zend_hash_discard(EG(function_table), EG(persistent_functions_count)); in shutdown_executor()
424 zend_hash_discard(EG(class_table), EG(persistent_classes_count)); in shutdown_executor()
428 if (EG(full_tables_cleanup)) { in shutdown_executor()
429 zend_hash_reverse_apply(EG(function_table), clean_non_persistent_function_full); in shutdown_executor()
430 zend_hash_reverse_apply(EG(class_table), clean_non_persistent_class_full); in shutdown_executor()
432 ZEND_HASH_REVERSE_FOREACH_STR_KEY_VAL(EG(function_table), key, zv) { in shutdown_executor()
434 if (_idx == EG(persistent_functions_count)) { in shutdown_executor()
441 ZEND_HASH_REVERSE_FOREACH_STR_KEY_VAL(EG(class_table), key, zv) { in shutdown_executor()
442 if (_idx == EG(persistent_classes_count)) { in shutdown_executor()
450 while (EG(symtable_cache_ptr) > EG(symtable_cache)) { in shutdown_executor()
451 EG(symtable_cache_ptr)--; in shutdown_executor()
452 zend_hash_destroy(*EG(symtable_cache_ptr)); in shutdown_executor()
453 FREE_HASHTABLE(*EG(symtable_cache_ptr)); in shutdown_executor()
456 zend_hash_destroy(&EG(included_files)); in shutdown_executor()
458 zend_stack_destroy(&EG(user_error_handlers_error_reporting)); in shutdown_executor()
459 zend_stack_destroy(&EG(user_error_handlers)); in shutdown_executor()
460 zend_stack_destroy(&EG(user_exception_handlers)); in shutdown_executor()
461 zend_objects_store_destroy(&EG(objects_store)); in shutdown_executor()
462 if (EG(in_autoload)) { in shutdown_executor()
463 zend_hash_destroy(EG(in_autoload)); in shutdown_executor()
464 FREE_HASHTABLE(EG(in_autoload)); in shutdown_executor()
467 if (EG(ht_iterators) != EG(ht_iterators_slots)) { in shutdown_executor()
468 efree(EG(ht_iterators)); in shutdown_executor()
473 if (EG(ht_iterators_used) && !CG(unclean_shutdown)) { in shutdown_executor()
474 zend_error(E_WARNING, "Leaked %" PRIu32 " hashtable iterators", EG(ht_iterators_used)); in shutdown_executor()
479 ZEND_ASSERT(EG(trampoline).common.function_name == NULL || CG(unclean_shutdown)); in shutdown_executor()
481 EG(ht_iterators_used) = 0; in shutdown_executor()
499 func = EG(current_execute_data)->func; in get_active_class_name()
529 func = EG(current_execute_data)->func; in get_active_function_name()
555 return get_function_or_method_name(EG(current_execute_data)->func); in get_active_function_or_method_name()
577 func = EG(current_execute_data)->func; in get_active_function_arg_name()
599 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_filename()
614 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_filename_ex()
629 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_lineno()
639 if (EG(exception) && ex->opline->opcode == ZEND_HANDLE_EXCEPTION && in zend_get_executed_lineno()
640 ex->opline->lineno == 0 && EG(opline_before_exception)) { in zend_get_executed_lineno()
641 return EG(opline_before_exception)->lineno; in zend_get_executed_lineno()
652 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_scope()
667 return EG(current_execute_data) != 0; in zend_is_executing()
713 …return zval_update_constant_ex(pp, EG(current_execute_data) ? zend_get_executed_scope() : CG(activ… in zval_update_constant()
745 if (!EG(active)) { in zend_call_function()
749 if (EG(exception)) { in zend_call_function()
791 if (UNEXPECTED(EG(exception))) { in zend_call_function()
815 if (UNEXPECTED(EG(exception))) { in zend_call_function()
873 if (UNEXPECTED(EG(exception))) { in zend_call_function()
924 orig_fake_scope = EG(fake_scope); in zend_call_function()
925 EG(fake_scope) = NULL; in zend_call_function()
927 uint32_t orig_jit_trace_num = EG(jit_trace_num); in zend_call_function()
932 EG(jit_trace_num) = orig_jit_trace_num; in zend_call_function()
936 call->prev_execute_data = EG(current_execute_data); in zend_call_function()
937 EG(current_execute_data) = call; in zend_call_function()
949 if (!EG(exception) && call->func) { in zend_call_function()
959 EG(current_execute_data) = call->prev_execute_data; in zend_call_function()
965 if (EG(exception)) { in zend_call_function()
972 if (EG(vm_interrupt)) { in zend_call_function()
973 EG(vm_interrupt) = 0; in zend_call_function()
974 if (EG(timed_out)) { in zend_call_function()
977 zend_interrupt_function(EG(current_execute_data)); in zend_call_function()
981 EG(fake_scope) = orig_fake_scope; in zend_call_function()
985 if (UNEXPECTED(EG(exception))) { in zend_call_function()
986 if (UNEXPECTED(!EG(current_execute_data))) { in zend_call_function()
988 } else if (EG(current_execute_data)->func && in zend_call_function()
989 ZEND_USER_CODE(EG(current_execute_data)->func->common.type)) { in zend_call_function()
990 zend_rethrow_exception(EG(current_execute_data)); in zend_call_function()
1022 if (!EG(exception)) { in zend_call_known_function()
1096 zv = zend_hash_find(EG(class_table), lc_name); in zend_lookup_class_ex()
1145 if (EG(in_autoload) == NULL) { in zend_lookup_class_ex()
1146 ALLOC_HASHTABLE(EG(in_autoload)); in zend_lookup_class_ex()
1147 zend_hash_init(EG(in_autoload), 8, NULL, NULL, 0); in zend_lookup_class_ex()
1150 if (zend_hash_add_empty_element(EG(in_autoload), lc_name) == NULL) { in zend_lookup_class_ex()
1168 zend_hash_del(EG(in_autoload), lc_name); in zend_lookup_class_ex()
1247 EG(no_extensions)=1; in zend_eval_stringl()
1272 EG(no_extensions)=0; in zend_eval_stringl()
1296 if (handle_exceptions && EG(exception)) { in zend_eval_stringl_ex()
1297 result = zend_exception_error(EG(exception), E_ERROR); in zend_eval_stringl_ex()
1319 if (EG(hard_timeout) > 0) { in zend_timeout()
1320 EG(timed_out) = 0; in zend_timeout()
1321 zend_set_timeout_ex(EG(hard_timeout), 1); in zend_timeout()
1323 EG(hard_timeout) = 0; in zend_timeout()
1327 EG(timed_out) = 0; in zend_timeout()
1331 …"Maximum execution time of " ZEND_LONG_FMT " second%s exceeded", EG(timeout_seconds), EG(timeout_s… in zend_timeout()
1339 if (si->si_value.sival_ptr != &EG(max_execution_timer_timer)) { in zend_timeout_handler()
1344 if (EG(oldact).sa_sigaction) { in zend_timeout_handler()
1345 EG(oldact).sa_sigaction(dummy, si, uc); in zend_timeout_handler()
1349 if (EG(oldact).sa_handler) EG(oldact).sa_handler(dummy); in zend_timeout_handler()
1358 if (EG(timed_out)) { in zend_timeout_handler()
1381 …ND_LONG_FMT " seconds exceeded (terminated) in %s on line %d\n", EG(timeout_seconds), EG(hard_time… in zend_timeout_handler()
1390 zend_on_timeout(EG(timeout_seconds)); in zend_timeout_handler()
1393 EG(timed_out) = 1; in zend_timeout_handler()
1394 EG(vm_interrupt) = 1; in zend_timeout_handler()
1397 if (EG(hard_timeout) > 0) { in zend_timeout_handler()
1399 zend_set_timeout_ex(EG(hard_timeout), 1); in zend_timeout_handler()
1518 EG(timeout_seconds) = seconds; in zend_set_timeout()
1520 EG(timed_out) = 0; in zend_set_timeout()
1529 EG(timed_out) = 0; in zend_unset_timeout()
1539 if (EG(timeout_seconds)) { in zend_unset_timeout()
1551 EG(timed_out) = 0; in zend_unset_timeout()
1561 if (EG(exception)) { in report_class_fetch_error()
1601 ce = zend_get_called_scope(EG(current_execute_data)); in zend_fetch_class()
1671 return zend_hash_del_ind(&EG(symbol_table), name); in zend_delete_global_variable()
1681 ex = EG(current_execute_data); in zend_rebuild_symbol_table()
1693 if (EG(symtable_cache_ptr) > EG(symtable_cache)) { in zend_rebuild_symbol_table()
1694 symbol_table = ex->symbol_table = *(--EG(symtable_cache_ptr)); in zend_rebuild_symbol_table()
1784 zend_execute_data *execute_data = EG(current_execute_data); in zend_set_local_var()
1827 zend_execute_data *execute_data = EG(current_execute_data); in zend_set_local_var_str()