Lines Matching refs:EG

73 				active_opline-EG(active_op_array)->opcodes,
130 ZVAL_NULL(&EG(uninitialized_zval)); in init_executor()
131 ZVAL_ERROR(&EG(error_zval)); in init_executor()
137 EG(symtable_cache_ptr) = EG(symtable_cache); in init_executor()
138 EG(symtable_cache_limit) = EG(symtable_cache) + SYMTABLE_CACHE_SIZE; in init_executor()
139 EG(no_extensions) = 0; in init_executor()
141 EG(function_table) = CG(function_table); in init_executor()
142 EG(class_table) = CG(class_table); in init_executor()
144 EG(in_autoload) = NULL; in init_executor()
145 EG(error_handling) = EH_NORMAL; in init_executor()
146 EG(flags) = EG_FLAGS_INITIAL; in init_executor()
150 zend_hash_init(&EG(symbol_table), 64, NULL, ZVAL_PTR_DTOR, 0); in init_executor()
154 zend_hash_init(&EG(included_files), 8, NULL, NULL, 0); in init_executor()
156 EG(ticks_count) = 0; in init_executor()
158 ZVAL_UNDEF(&EG(user_error_handler)); in init_executor()
159 ZVAL_UNDEF(&EG(user_exception_handler)); in init_executor()
161 EG(current_execute_data) = NULL; in init_executor()
163 zend_stack_init(&EG(user_error_handlers_error_reporting), sizeof(int)); in init_executor()
164 zend_stack_init(&EG(user_error_handlers), sizeof(zval)); in init_executor()
165 zend_stack_init(&EG(user_exception_handlers), sizeof(zval)); in init_executor()
167 zend_objects_store_init(&EG(objects_store), 1024); in init_executor()
169 EG(full_tables_cleanup) = 0; in init_executor()
170 EG(vm_interrupt) = 0; in init_executor()
171 EG(timed_out) = 0; in init_executor()
173 EG(exception) = NULL; in init_executor()
174 EG(prev_exception) = NULL; in init_executor()
176 EG(fake_scope) = NULL; in init_executor()
177 EG(trampoline).common.function_name = NULL; in init_executor()
179 EG(ht_iterators_count) = sizeof(EG(ht_iterators_slots)) / sizeof(HashTableIterator); in init_executor()
180 EG(ht_iterators_used) = 0; in init_executor()
181 EG(ht_iterators) = EG(ht_iterators_slots); in init_executor()
182 memset(EG(ht_iterators), 0, sizeof(EG(ht_iterators_slots))); in init_executor()
184 EG(persistent_constants_count) = EG(zend_constants)->nNumUsed; in init_executor()
185 EG(persistent_functions_count) = EG(function_table)->nNumUsed; in init_executor()
186 EG(persistent_classes_count) = EG(class_table)->nNumUsed; in init_executor()
188 EG(get_gc_buffer).start = EG(get_gc_buffer).end = EG(get_gc_buffer).cur = NULL; in init_executor()
192 EG(active) = 1; in init_executor()
240 EG(symbol_table).pDestructor = zend_unclean_zval_ptr_dtor; in shutdown_destructors()
245 symbols = zend_hash_num_elements(&EG(symbol_table)); in shutdown_destructors()
246 zend_hash_reverse_apply(&EG(symbol_table), (apply_func_t) zval_call_destructor); in shutdown_destructors()
247 } while (symbols != zend_hash_num_elements(&EG(symbol_table))); in shutdown_destructors()
248 zend_objects_store_call_destructors(&EG(objects_store)); in shutdown_destructors()
251 zend_objects_store_mark_destructed(&EG(objects_store)); in shutdown_destructors()
263 zend_bool fast_shutdown = is_zend_mm() && !EG(full_tables_cleanup); in shutdown_executor()
270 EG(flags) |= EG_FLAGS_IN_RESOURCE_SHUTDOWN; in shutdown_executor()
272 zend_close_rsrc_list(&EG(regular_list)); in shutdown_executor()
276 EG(active) = 0; in shutdown_executor()
279 zend_hash_graceful_reverse_destroy(&EG(symbol_table)); in shutdown_executor()
283 ZEND_HASH_REVERSE_FOREACH_VAL(EG(function_table), zv) { in shutdown_executor()
296 ZEND_HASH_REVERSE_FOREACH_VAL(EG(class_table), zv) { in shutdown_executor()
318 if (Z_TYPE(EG(user_error_handler)) != IS_UNDEF) { in shutdown_executor()
319 zval_ptr_dtor(&EG(user_error_handler)); in shutdown_executor()
320 ZVAL_UNDEF(&EG(user_error_handler)); in shutdown_executor()
323 if (Z_TYPE(EG(user_exception_handler)) != IS_UNDEF) { in shutdown_executor()
324 zval_ptr_dtor(&EG(user_exception_handler)); in shutdown_executor()
325 ZVAL_UNDEF(&EG(user_exception_handler)); in shutdown_executor()
328 zend_stack_clean(&EG(user_error_handlers_error_reporting), NULL, 1); in shutdown_executor()
329 zend_stack_clean(&EG(user_error_handlers), (void (*)(void *))ZVAL_PTR_DTOR, 1); in shutdown_executor()
330 zend_stack_clean(&EG(user_exception_handlers), (void (*)(void *))ZVAL_PTR_DTOR, 1); in shutdown_executor()
339 zend_objects_store_free_object_storage(&EG(objects_store), fast_shutdown); in shutdown_executor()
353 zend_hash_discard(EG(zend_constants), EG(persistent_constants_count)); in shutdown_executor()
354 zend_hash_discard(EG(function_table), EG(persistent_functions_count)); in shutdown_executor()
355 zend_hash_discard(EG(class_table), EG(persistent_classes_count)); in shutdown_executor()
360 if (EG(full_tables_cleanup)) { in shutdown_executor()
361 zend_hash_reverse_apply(EG(zend_constants), clean_non_persistent_constant_full); in shutdown_executor()
362 zend_hash_reverse_apply(EG(function_table), clean_non_persistent_function_full); in shutdown_executor()
363 zend_hash_reverse_apply(EG(class_table), clean_non_persistent_class_full); in shutdown_executor()
365 ZEND_HASH_REVERSE_FOREACH_STR_KEY_VAL(EG(zend_constants), key, zv) { in shutdown_executor()
367 if (_idx == EG(persistent_constants_count)) { in shutdown_executor()
378 ZEND_HASH_REVERSE_FOREACH_STR_KEY_VAL(EG(function_table), key, zv) { in shutdown_executor()
380 if (_idx == EG(persistent_functions_count)) { in shutdown_executor()
387 ZEND_HASH_REVERSE_FOREACH_STR_KEY_VAL(EG(class_table), key, zv) { in shutdown_executor()
388 if (_idx == EG(persistent_classes_count)) { in shutdown_executor()
396 while (EG(symtable_cache_ptr) > EG(symtable_cache)) { in shutdown_executor()
397 EG(symtable_cache_ptr)--; in shutdown_executor()
398 zend_hash_destroy(*EG(symtable_cache_ptr)); in shutdown_executor()
399 FREE_HASHTABLE(*EG(symtable_cache_ptr)); in shutdown_executor()
402 zend_hash_destroy(&EG(included_files)); in shutdown_executor()
404 zend_stack_destroy(&EG(user_error_handlers_error_reporting)); in shutdown_executor()
405 zend_stack_destroy(&EG(user_error_handlers)); in shutdown_executor()
406 zend_stack_destroy(&EG(user_exception_handlers)); in shutdown_executor()
407 zend_objects_store_destroy(&EG(objects_store)); in shutdown_executor()
408 if (EG(in_autoload)) { in shutdown_executor()
409 zend_hash_destroy(EG(in_autoload)); in shutdown_executor()
410 FREE_HASHTABLE(EG(in_autoload)); in shutdown_executor()
413 if (EG(ht_iterators) != EG(ht_iterators_slots)) { in shutdown_executor()
414 efree(EG(ht_iterators)); in shutdown_executor()
419 if (EG(ht_iterators_used) && !CG(unclean_shutdown)) { in shutdown_executor()
420 zend_error(E_WARNING, "Leaked %" PRIu32 " hashtable iterators", EG(ht_iterators_used)); in shutdown_executor()
425 ZEND_ASSERT(EG(trampoline).common.function_name == NULL || CG(unclean_shutdown)); in shutdown_executor()
427 EG(ht_iterators_used) = 0; in shutdown_executor()
445 func = EG(current_execute_data)->func; in get_active_class_name()
475 func = EG(current_execute_data)->func; in get_active_function_name()
501 return get_function_or_method_name(EG(current_execute_data)->func); in get_active_function_or_method_name()
523 func = EG(current_execute_data)->func; in get_active_function_arg_name()
545 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_filename()
560 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_filename_ex()
575 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_lineno()
581 if (EG(exception) && ex->opline->opcode == ZEND_HANDLE_EXCEPTION && in zend_get_executed_lineno()
582 ex->opline->lineno == 0 && EG(opline_before_exception)) { in zend_get_executed_lineno()
583 return EG(opline_before_exception)->lineno; in zend_get_executed_lineno()
594 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_scope()
609 return EG(current_execute_data) != 0; in zend_is_executing()
643 …return zval_update_constant_ex(pp, EG(current_execute_data) ? zend_get_executed_scope() : CG(activ… in zval_update_constant()
675 if (!EG(active)) { in zend_call_function()
679 if (EG(exception)) { in zend_call_function()
686 if (!EG(current_execute_data)) { in zend_call_function()
692 EG(current_execute_data) = &dummy_execute_data; in zend_call_function()
693 } else if (EG(current_execute_data)->func && in zend_call_function()
694 ZEND_USER_CODE(EG(current_execute_data)->func->common.type) && in zend_call_function()
695 EG(current_execute_data)->opline->opcode != ZEND_DO_FCALL && in zend_call_function()
696 EG(current_execute_data)->opline->opcode != ZEND_DO_ICALL && in zend_call_function()
697 EG(current_execute_data)->opline->opcode != ZEND_DO_UCALL && in zend_call_function()
698 EG(current_execute_data)->opline->opcode != ZEND_DO_FCALL_BY_NAME) { in zend_call_function()
700 dummy_execute_data = *EG(current_execute_data); in zend_call_function()
701 dummy_execute_data.prev_execute_data = EG(current_execute_data); in zend_call_function()
705 EG(current_execute_data) = &dummy_execute_data; in zend_call_function()
723 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
724 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
749 if (UNEXPECTED(EG(exception))) { in zend_call_function()
751 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
752 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
753 zend_rethrow_exception(EG(current_execute_data)); in zend_call_function()
777 if (UNEXPECTED(EG(exception))) { in zend_call_function()
782 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
783 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
838 if (UNEXPECTED(EG(exception))) { in zend_call_function()
868 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
869 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
886 orig_fake_scope = EG(fake_scope); in zend_call_function()
887 EG(fake_scope) = NULL; in zend_call_function()
890 const zend_op *current_opline_before_exception = EG(opline_before_exception); in zend_call_function()
891 uint32_t orig_jit_trace_num = EG(jit_trace_num); in zend_call_function()
896 EG(jit_trace_num) = orig_jit_trace_num; in zend_call_function()
897 EG(opline_before_exception) = current_opline_before_exception; in zend_call_function()
907 call->prev_execute_data = EG(current_execute_data); in zend_call_function()
908 EG(current_execute_data) = call; in zend_call_function()
915 EG(current_execute_data) = call->prev_execute_data; in zend_call_function()
921 if (EG(exception)) { in zend_call_function()
933 if (EG(vm_interrupt)) { in zend_call_function()
934 EG(vm_interrupt) = 0; in zend_call_function()
935 if (EG(timed_out)) { in zend_call_function()
938 zend_interrupt_function(EG(current_execute_data)); in zend_call_function()
942 EG(fake_scope) = orig_fake_scope; in zend_call_function()
946 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
947 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
950 if (UNEXPECTED(EG(exception))) { in zend_call_function()
951 if (UNEXPECTED(!EG(current_execute_data))) { in zend_call_function()
953 } else if (EG(current_execute_data)->func && in zend_call_function()
954 ZEND_USER_CODE(EG(current_execute_data)->func->common.type)) { in zend_call_function()
955 zend_rethrow_exception(EG(current_execute_data)); in zend_call_function()
987 if (!EG(exception)) { in zend_call_known_function()
1052 zv = zend_hash_find(EG(class_table), lc_name); in zend_lookup_class_ex()
1091 if (EG(in_autoload) == NULL) { in zend_lookup_class_ex()
1092 ALLOC_HASHTABLE(EG(in_autoload)); in zend_lookup_class_ex()
1093 zend_hash_init(EG(in_autoload), 8, NULL, NULL, 0); in zend_lookup_class_ex()
1096 if (zend_hash_add_empty_element(EG(in_autoload), lc_name) == NULL) { in zend_lookup_class_ex()
1114 zend_hash_del(EG(in_autoload), lc_name); in zend_lookup_class_ex()
1187 EG(no_extensions)=1; in zend_eval_stringl()
1212 EG(no_extensions)=0; in zend_eval_stringl()
1235 if (handle_exceptions && EG(exception)) { in zend_eval_stringl_ex()
1236 result = zend_exception_error(EG(exception), E_ERROR); in zend_eval_stringl_ex()
1258 if (EG(hard_timeout) > 0) { in zend_timeout()
1259 EG(timed_out) = 0; in zend_timeout()
1260 zend_set_timeout_ex(EG(hard_timeout), 1); in zend_timeout()
1262 EG(hard_timeout) = 0; in zend_timeout()
1266 EG(timed_out) = 0; in zend_timeout()
1270 …"Maximum execution time of " ZEND_LONG_FMT " second%s exceeded", EG(timeout_seconds), EG(timeout_s… in zend_timeout()
1278 if (EG(timed_out)) { in zend_timeout_handler()
1301 …ND_LONG_FMT " seconds exceeded (terminated) in %s on line %d\n", EG(timeout_seconds), EG(hard_time… in zend_timeout_handler()
1310 zend_on_timeout(EG(timeout_seconds)); in zend_timeout_handler()
1313 EG(timed_out) = 1; in zend_timeout_handler()
1314 EG(vm_interrupt) = 1; in zend_timeout_handler()
1317 if (EG(hard_timeout) > 0) { in zend_timeout_handler()
1319 zend_set_timeout_ex(EG(hard_timeout), 1); in zend_timeout_handler()
1423 EG(timeout_seconds) = seconds; in zend_set_timeout()
1425 EG(timed_out) = 0; in zend_set_timeout()
1434 EG(timed_out) = 0; in zend_unset_timeout()
1442 if (EG(timeout_seconds)) { in zend_unset_timeout()
1454 EG(timed_out) = 0; in zend_unset_timeout()
1482 ce = zend_get_called_scope(EG(current_execute_data)); in zend_fetch_class()
1500 if (!(fetch_type & ZEND_FETCH_CLASS_SILENT) && !EG(exception)) { in zend_fetch_class()
1525 if (EG(exception)) { in zend_fetch_class_by_name()
1529 ZVAL_OBJ(&exception_zv, EG(exception)); in zend_fetch_class_by_name()
1553 return zend_hash_del_ind(&EG(symbol_table), name); in zend_delete_global_variable()
1563 ex = EG(current_execute_data); in zend_rebuild_symbol_table()
1575 if (EG(symtable_cache_ptr) > EG(symtable_cache)) { in zend_rebuild_symbol_table()
1576 symbol_table = ex->symbol_table = *(--EG(symtable_cache_ptr)); in zend_rebuild_symbol_table()
1666 zend_execute_data *execute_data = EG(current_execute_data); in zend_set_local_var()
1709 zend_execute_data *execute_data = EG(current_execute_data); in zend_set_local_var_str()