Home
last modified time | relevance | path

Searched refs:EG (Results 1 – 25 of 178) sorted by relevance

12345678

/PHP-8.1/Zend/
H A Dzend_execute_API.c141 EG(symtable_cache_ptr) = EG(symtable_cache); 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()
202 EG(active) = 1; in init_executor()
450 while (EG(symtable_cache_ptr) > EG(symtable_cache)) { in shutdown_executor()
467 if (EG(ht_iterators) != EG(ht_iterators_slots)) { in shutdown_executor()
[all …]
H A Dzend_float.c28 if (!EG(saved_fpu_cw_ptr)) { in zend_init_fpu()
29 EG(saved_fpu_cw_ptr) = (void*)&EG(saved_fpu_cw); in zend_init_fpu()
31 XPFPA_STORE_CW(EG(saved_fpu_cw_ptr)); in zend_init_fpu()
34 EG(saved_fpu_cw_ptr) = NULL; in zend_init_fpu()
42 if (EG(saved_fpu_cw_ptr)) { in zend_shutdown_fpu()
43 XPFPA_RESTORE_CW(EG(saved_fpu_cw_ptr)); in zend_shutdown_fpu()
46 EG(saved_fpu_cw_ptr) = NULL; in zend_shutdown_fpu()
H A Dzend_max_execution_timer.c40 sev.sigev_value.sival_ptr = &EG(max_execution_timer_timer); in zend_max_execution_timer_init()
45 if (timer_create(CLOCK_BOOTTIME, &sev, &EG(max_execution_timer_timer)) != 0) { in zend_max_execution_timer_init()
49 EG(pid) = getpid(); in zend_max_execution_timer_init()
52 …fprintf(stderr, "Timer %#jx created on thread %d\n", (uintmax_t) EG(max_execution_timer_timer), se… in zend_max_execution_timer_init()
55 sigaction(sev.sigev_signo, NULL, &EG(oldact)); in zend_max_execution_timer_init()
62 if (!EG(pid)) { in zend_max_execution_timer_settime()
66 timer_t timer = EG(max_execution_timer_timer); in zend_max_execution_timer_settime()
85 if (EG(pid) != getpid()) { in zend_max_execution_timer_shutdown()
89 EG(pid) = 0; in zend_max_execution_timer_shutdown()
91 timer_t timer = EG(max_execution_timer_timer); in zend_max_execution_timer_shutdown()
H A Dzend_objects_API.c45 EG(flags) |= EG_FLAGS_OBJECT_STORE_NO_REUSE; in zend_objects_store_call_destructors()
134 uint32_t new_size = 2 * EG(objects_store).size; in zend_objects_store_put_cold()
136EG(objects_store).object_buckets = (zend_object **) erealloc(EG(objects_store).object_buckets, new… in zend_objects_store_put_cold()
138 EG(objects_store).size = new_size; in zend_objects_store_put_cold()
139 handle = EG(objects_store).top++; in zend_objects_store_put_cold()
141 EG(objects_store).object_buckets[handle] = object; in zend_objects_store_put_cold()
151 …if (EG(objects_store).free_list_head != -1 && EXPECTED(!(EG(flags) & EG_FLAGS_OBJECT_STORE_NO_REUS… in zend_objects_store_put()
152 handle = EG(objects_store).free_list_head; in zend_objects_store_put()
153EG(objects_store).free_list_head = GET_OBJ_BUCKET_NUMBER(EG(objects_store).object_buckets[handle]); in zend_objects_store_put()
154 } else if (UNEXPECTED(EG(objects_store).top == EG(objects_store).size)) { in zend_objects_store_put()
[all …]
H A Dzend_fibers.c109 state->bailout = EG(bailout); in zend_fiber_capture_vm_state()
461 EG(vm_stack) = NULL; in zend_fiber_execute()
465 EG(vm_stack) = stack; in zend_fiber_execute()
479 EG(jit_trace_num) = 0; in zend_fiber_execute()
490 if (EG(exception)) { in zend_fiber_execute()
492 || !(zend_is_graceful_exit(EG(exception)) || zend_is_unwind_exit(EG(exception))) in zend_fiber_execute()
546 EG(active_fiber) = NULL; in zend_fiber_switch_to()
562 EG(active_fiber) = fiber; in zend_fiber_resume()
604 EG(exception) = NULL; in zend_fiber_object_destroy()
618 if (!exception && EG(current_execute_data) && EG(current_execute_data)->func in zend_fiber_object_destroy()
[all …]
H A Dzend.c605 memset(EG(exception_op), 0, sizeof(EG(exception_op))); in zend_init_exception_op()
617 memset(&EG(call_trampoline_op), 0, sizeof(EG(call_trampoline_op))); in zend_init_call_trampoline_op()
1192 if (!EG(bailout)) { in _zend_bailout()
1406 EG(num_errors)++; in zend_error_zstr_at()
1407 EG(errors) = erealloc(EG(errors), sizeof(zend_error_info) * EG(num_errors)); in zend_error_zstr_at()
1408 EG(errors)[EG(num_errors)-1] = info; in zend_error_zstr_at()
1684 EG(num_errors) = 0; in zend_begin_record_errors()
1685 EG(errors) = NULL; in zend_begin_record_errors()
1709 efree(EG(errors)); in zend_free_recorded_errors()
1710 EG(errors) = NULL; in zend_free_recorded_errors()
[all …]
H A Dzend_exceptions.c135 zend_exception_set_previous(EG(exception), EG(prev_exception)); in zend_exception_save()
138 EG(prev_exception) = EG(exception); in zend_exception_save()
148 zend_exception_set_previous(EG(exception), EG(prev_exception)); in zend_exception_restore()
150 EG(exception) = EG(prev_exception); in zend_exception_restore()
211 EG(opline_before_exception) = EG(current_execute_data)->opline; in zend_throw_exception_internal()
212 EG(current_execute_data)->opline = EG(exception_op); in zend_throw_exception_internal()
231 EG(current_execute_data)->opline = EG(opline_before_exception); in zend_clear_exception()
1019 EG(opline_before_exception) = EG(current_execute_data)->opline; in zend_throw_unwind_exit()
1020 EG(current_execute_data)->opline = EG(exception_op); in zend_throw_unwind_exit()
1027 EG(opline_before_exception) = EG(current_execute_data)->opline; in zend_throw_graceful_exit()
[all …]
H A Dzend_ini.c98 EG(modified_ini_directives) = NULL; in zend_ini_startup()
99 EG(error_reporting_ini_entry) = NULL; in zend_ini_startup()
106 zend_ini_dtor(EG(ini_directives)); in zend_ini_shutdown()
126 if (EG(modified_ini_directives)) { in zend_ini_deactivate()
134 EG(modified_ini_directives) = NULL; in zend_ini_deactivate()
161 EG(modified_ini_directives) = NULL; in zend_copy_ini_directives()
162 EG(error_reporting_ini_entry) = NULL; in zend_copy_ini_directives()
214 directives = EG(ini_directives); in zend_register_ini_entries_ex()
281 ini_directives = EG(ini_directives); in zend_unregister_ini_entries_ex()
373 if (!EG(modified_ini_directives)) { in zend_alter_ini_entry_ex()
[all …]
H A Dzend_objects.c106 if (EG(current_execute_data)) { in zend_objects_destroy_object()
127 if (EG(current_execute_data)) { in zend_objects_destroy_object()
155 if (EG(exception)) { in zend_objects_destroy_object()
156 if (EG(exception) == object) { in zend_objects_destroy_object()
159 if (EG(current_execute_data) in zend_objects_destroy_object()
160 && EG(current_execute_data)->func in zend_objects_destroy_object()
162 zend_rethrow_exception(EG(current_execute_data)); in zend_objects_destroy_object()
164 old_exception = EG(exception); in zend_objects_destroy_object()
166 EG(exception) = NULL; in zend_objects_destroy_object()
174 if (EG(exception)) { in zend_objects_destroy_object()
[all …]
H A Dzend_builtin_functions.c394 if (!EG(modified_ini_directives)) { in ZEND_FUNCTION()
408 EG(error_reporting) = err; in ZEND_FUNCTION()
1152 zend_stack_push(&EG(user_error_handlers_error_reporting), &EG(user_error_handler_error_reporting)); in ZEND_FUNCTION()
1153 zend_stack_push(&EG(user_error_handlers), &EG(user_error_handler)); in ZEND_FUNCTION()
1156 ZVAL_UNDEF(&EG(user_error_handler)); in ZEND_FUNCTION()
1174 ZVAL_UNDEF(&EG(user_error_handler)); in ZEND_FUNCTION()
1179 ZVAL_UNDEF(&EG(user_error_handler)); in ZEND_FUNCTION()
1182EG(user_error_handler_error_reporting) = zend_stack_int_top(&EG(user_error_handlers_error_reportin… in ZEND_FUNCTION()
1208 zend_stack_push(&EG(user_exception_handlers), &EG(user_exception_handler)); in ZEND_FUNCTION()
1654 call = EG(current_execute_data); in zend_fetch_debug_backtrace()
[all …]
H A Dzend_generators.c282 zend_object *old_exception = EG(exception); in zend_generator_dtor_storage()
284 EG(exception) = NULL; in zend_generator_dtor_storage()
294 if (EG(exception)) { in zend_generator_dtor_storage()
297 EG(exception) = old_exception; in zend_generator_dtor_storage()
643 if (UNEXPECTED(EG(exception) != NULL)) { in zend_generator_get_next_delegated_value()
664 if (UNEXPECTED(EG(exception) != NULL)) { in zend_generator_get_next_delegated_value()
715 EG(jit_trace_num) = 0; in zend_generator_resume()
772 EG(jit_trace_num) = original_jit_trace_num; in zend_generator_resume()
778 if (UNEXPECTED(EG(exception) != NULL)) { in zend_generator_resume()
781 if (!EG(current_execute_data)) { in zend_generator_resume()
[all …]
H A Dzend_vm_execute.skl38 if (EG(exception) != NULL) {
42 object_or_called_scope = zend_get_this_object(EG(current_execute_data));
44 object_or_called_scope = zend_get_called_scope(EG(current_execute_data));
51 if (EG(current_execute_data)) {
54 execute_data->symbol_table = &EG(symbol_table);
56 EX(prev_execute_data) = EG(current_execute_data);
H A Dzend_list.c36 zend_long index = zend_hash_next_free_element(&EG(regular_list)); in zend_list_insert()
43 return zend_hash_index_add_new(&EG(regular_list), index, &zv); in zend_list_insert()
49 return zend_hash_index_del(&EG(regular_list), res->handle); in zend_list_delete()
58 zend_hash_index_del(&EG(regular_list), res->handle); in zend_list_free()
204 zend_hash_init(&EG(regular_list), 8, NULL, list_entry_destructor, 0); in zend_init_rsrc_list()
205 EG(regular_list).nNextFreeElement = 0; in zend_init_rsrc_list()
211 zend_hash_init(&EG(persistent_list), 8, NULL, plist_entry_destructor, 1); in zend_init_rsrc_plist()
250 …zend_hash_apply_with_argument(&EG(persistent_list), clean_module_resource, (void *) &(ld->resource… in zend_clean_module_rsrc_dtors_cb()
336 zv = zend_hash_update(&EG(persistent_list), key, &tmp); in zend_register_persistent_resource_ex()
H A Dzend_constants.c103 EG(zend_constants) = (HashTable *) malloc(sizeof(HashTable)); in zend_startup_constants()
104 zend_hash_init(EG(zend_constants), 128, NULL, ZEND_CONSTANT_DTOR, 1); in zend_startup_constants()
147 zend_hash_destroy(EG(zend_constants)); in zend_shutdown_constants()
148 free(EG(zend_constants)); in zend_shutdown_constants()
214 if (!EG(current_execute_data)) { in zend_get_halt_offset_constant()
227 c = zend_hash_find_ptr(EG(zend_constants), haltname); in zend_get_halt_offset_constant()
281 zend_constant *c = zend_hash_str_find_ptr(EG(zend_constants), name, name_len); in zend_get_constant_str_impl()
305 zend_constant *c = zend_hash_find_ptr(EG(zend_constants), name); in zend_get_constant_impl()
355 ce = zend_get_called_scope(EG(current_execute_data)); in zend_get_class_constant_ex()
521 c = zend_hash_str_find_ptr(EG(zend_constants), lcname, lcname_len); in zend_get_constant_ex()
[all …]
H A Dzend_execute.h201 …K_GLOBAL ZEND_ASSERT(EG(vm_stack_top) > (zval *) EG(vm_stack) && EG(vm_stack_end) > (zval *) EG(vm…
232 zend_execute_data *call = (zend_execute_data*)EG(vm_stack_top); in zend_vm_stack_push_call_frame_ex()
242 EG(vm_stack_top) = (zval*)((char*)call + used_stack); in zend_vm_stack_push_call_frame_ex()
302 zend_vm_stack p = EG(vm_stack); in zend_vm_stack_free_call_frame_ex()
305 ZEND_ASSERT(call == (zend_execute_data*)ZEND_VM_STACK_ELEMENTS(EG(vm_stack))); in zend_vm_stack_free_call_frame_ex()
306 EG(vm_stack_top) = prev->top; in zend_vm_stack_free_call_frame_ex()
307 EG(vm_stack_end) = prev->end; in zend_vm_stack_free_call_frame_ex()
308 EG(vm_stack) = prev; in zend_vm_stack_free_call_frame_ex()
311 EG(vm_stack_top) = (zval*)call; in zend_vm_stack_free_call_frame_ex()
328 if (EXPECTED((uint32_t)(EG(vm_stack_end) - EG(vm_stack_top)) > additional_args)) { in zend_vm_stack_extend_call_frame()
[all …]
H A Dzend_object_handlers.c331 scope = EG(fake_scope); in zend_get_property_offset()
427 scope = EG(fake_scope); in zend_get_property_info()
719 ZEND_ASSERT(EG(exception)); in zend_std_read_property()
756 scope = EG(fake_scope); in verify_readonly_initialization_access()
855 ZEND_ASSERT(EG(exception)); in zend_std_write_property()
1067 return &EG(error_zval); in zend_std_get_property_ptr_ptr()
1080 retval = &EG(error_zval); in zend_std_get_property_ptr_ptr()
1448 if (EG(exception)) { in zend_std_get_static_method()
1495 scope = EG(fake_scope); in zend_std_get_static_property_with_info()
1584 scope = EG(fake_scope); in zend_std_get_constructor()
[all …]
/PHP-8.1/ext/zend_test/
H A Dfiber.c81 EG(vm_stack) = NULL; in zend_test_fiber_execute()
86 EG(vm_stack) = stack; in zend_test_fiber_execute()
88 EG(vm_stack_end) = stack->end; in zend_test_fiber_execute()
96 EG(jit_trace_num) = 0; in zend_test_fiber_execute()
105 if (EG(exception)) { in zend_test_fiber_execute()
107 || !(zend_is_graceful_exit(EG(exception)) || zend_is_unwind_exit(EG(exception))) in zend_test_fiber_execute()
166 zend_object *exception = EG(exception); in zend_test_fiber_object_destroy()
167 EG(exception) = NULL; in zend_test_fiber_object_destroy()
176 if (!exception && EG(current_execute_data) && EG(current_execute_data)->func in zend_test_fiber_object_destroy()
183 if (!EG(current_execute_data)) { in zend_test_fiber_object_destroy()
[all …]
/PHP-8.1/ext/opcache/jit/
H A Dzend_jit_helpers.c23 ZEND_ASSERT(EG(exception)); in undef_result_after_exception()
416 if (EG(exception)) { in zend_jit_fetch_dim_r_helper()
448 if (EG(exception)) { in zend_jit_fetch_dim_r_helper()
476 if (EG(exception)) { in zend_jit_fetch_dim_r_helper()
558 if (EG(exception)) { in zend_jit_fetch_dim_is_helper()
618 if (EG(exception)) { in zend_jit_fetch_dim_is_helper()
687 if (EG(exception)) { in zend_jit_fetch_dim_isset_helper()
723 if (EG(exception)) { in zend_jit_fetch_dim_isset_helper()
856 if (EG(exception)) { in zend_jit_fetch_dim_rw_helper()
989 if (EG(exception)) { in zend_jit_fetch_dim_w_helper()
[all …]
/PHP-8.1/Zend/tests/
H A Dbug78868.phpt2 Bug #78868: Calling __autoload() with incorrect EG(fake_scope) value
9 $this->private++; //fails with EG(fake_scope) != NULL && EG(fake_scope) != "C"
28 $props[0]->setValue(2); //causes constant resolving, which runs autoload, all with EG(fake_scope) =…
/PHP-8.1/sapi/phpdbg/
H A Dphpdbg_prompt.c522 if (EG(exception)) { in phpdbg_compile_stdin()
571 if (EG(exception)) { in phpdbg_compile()
718 EG(exception) = NULL; in phpdbg_handle_exception()
724 if (EG(exception)) { in phpdbg_handle_exception()
725 EG(exception) = NULL; in phpdbg_handle_exception()
745 EG(exit_status) = 255; in phpdbg_handle_exception()
910 if (EG(exception)) { in PHPDBG_COMMAND()
973 if (EG(exception)) { in PHPDBG_COMMAND()
974 ex = EG(exception); in PHPDBG_COMMAND()
991 EG(exit_status) = 0; in PHPDBG_COMMAND()
[all …]
H A Dphpdbg_info.c65 phpdbg_notice("Included files: %d", zend_hash_num_elements(&EG(included_files))); in PHPDBG_INFO()
72 ZEND_HASH_FOREACH_STR_KEY(&EG(included_files), fname) { in PHPDBG_INFO()
106 if (EG(zend_constants)) { in PHPDBG_INFO()
108 ZEND_HASH_FOREACH_PTR(EG(zend_constants), data) { in PHPDBG_INFO()
182 if (!EG(current_execute_data) || !EG(current_execute_data)->func) { in phpdbg_print_symbols()
190 symtable = &EG(symbol_table); in phpdbg_print_symbols()
211 zend_op_array *ops = &EG(current_execute_data)->func->op_array; in phpdbg_print_symbols()
307 …bool in_executor = PHPDBG_G(in_execution) && EG(current_execute_data) && EG(current_execute_data)-… in PHPDBG_INFO()
309 zend_op_array *ops = in_executor ? &EG(current_execute_data)->func->op_array : PHPDBG_G(ops); in PHPDBG_INFO()
390 ZEND_HASH_FOREACH_PTR(EG(class_table), ce) { in PHPDBG_INFO()
[all …]
H A Dphpdbg_print.c43 if (PHPDBG_G(in_execution) && EG(current_execute_data)) { in PHPDBG_PRINT()
44 phpdbg_print_opline(phpdbg_user_execute_data(EG(current_execute_data)), 1); in PHPDBG_PRINT()
101 if (PHPDBG_G(in_execution) && EG(current_execute_data)) { in PHPDBG_PRINT()
102 zend_op_array *ops = &phpdbg_user_execute_data(EG(current_execute_data))->func->op_array; in PHPDBG_PRINT()
184 HashTable *func_table = EG(function_table); in PHPDBG_PRINT()
202 } else if (!EG(function_table)) { in PHPDBG_PRINT()
206 func_table = EG(function_table); in PHPDBG_PRINT()
238 zend_function *func = zend_hash_str_find_ptr(EG(function_table), function, len); in phpdbg_print_opcodes_function()
335 ZEND_HASH_FOREACH_STR_KEY_PTR(EG(function_table), name, func) { in phpdbg_print_opcodes()
341 ZEND_HASH_FOREACH_PTR(EG(class_table), ce) { in phpdbg_print_opcodes()
H A Dphpdbg_frame.c116 EG(current_execute_data) = PHPDBG_FRAME(execute_data); in phpdbg_restore_frame()
121 …zend_execute_data *execute_data = PHPDBG_FRAME(num) ? PHPDBG_FRAME(execute_data) : EG(current_exec… in phpdbg_switch_frame()
155 PHPDBG_FRAME(execute_data) = EG(current_execute_data); in phpdbg_switch_frame()
156 EG(current_execute_data) = execute_data; in phpdbg_switch_frame()
160 zend_string *s = phpdbg_compile_stackframe(EG(current_execute_data)); in phpdbg_switch_frame()
306 if (EG(current_execute_data) == gen->execute_data) { in phpdbg_open_generator_frame()
315 EG(current_execute_data) = gen->execute_data; in phpdbg_open_generator_frame()
321 s = phpdbg_compile_stackframe(EG(current_execute_data)); in phpdbg_open_generator_frame()
/PHP-8.1/ext/opcache/
H A DZendAccelerator.c1840 EG(num_errors) = 0; in opcache_compile_file()
1841 EG(errors) = NULL; in opcache_compile_file()
1903 if (!EG(current_execute_data) || !EG(current_execute_data)->opline || in file_cache_compile_file()
2393 zend_persist_warnings_calc(EG(num_errors), EG(errors)); in zend_accel_inheritance_cache_add()
2451 entry->warnings = zend_persist_warnings(EG(num_errors), EG(errors)); in zend_accel_inheritance_cache_add()
2455 EG(num_errors) = 0; in zend_accel_inheritance_cache_add()
2456 EG(errors) = NULL; in zend_accel_inheritance_cache_add()
4006 EG(class_table), key, zv, EG(persistent_classes_count)) {
4358 EG(persistent_constants_count) = EG(zend_constants)->nNumUsed;
4361 EG(persistent_functions_count) = EG(function_table)->nNumUsed;
[all …]
/PHP-8.1/ext/sodium/
H A Dlibsodium.c413 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
439 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
464 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
493 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
514 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
547 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
589 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
629 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
668 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
707 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
[all …]

Completed in 148 milliseconds

12345678