/PHP-8.3/Zend/ |
H A D | zend_float.c | 28 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 D | zend_execute_API.c | 142 EG(symtable_cache_ptr) = EG(symtable_cache); in init_executor() 186 EG(ht_iterators) = EG(ht_iterators_slots); in init_executor() 187 memset(EG(ht_iterators), 0, sizeof(EG(ht_iterators_slots))); in init_executor() 189 EG(persistent_constants_count) = EG(zend_constants)->nNumUsed; in init_executor() 190 EG(persistent_functions_count) = EG(function_table)->nNumUsed; in init_executor() 191 EG(persistent_classes_count) = EG(class_table)->nNumUsed; in init_executor() 193 EG(get_gc_buffer).start = EG(get_gc_buffer).end = EG(get_gc_buffer).cur = NULL; in init_executor() 206 EG(active) = 1; in init_executor() 460 while (EG(symtable_cache_ptr) > EG(symtable_cache)) { in shutdown_executor() 477 if (EG(ht_iterators) != EG(ht_iterators_slots)) { in shutdown_executor() [all …]
|
H A D | zend_max_execution_timer.c | 45 if (EG(pid) == pid) { in zend_max_execution_timer_init() 51 sev.sigev_value.sival_ptr = &EG(max_execution_timer_timer); in zend_max_execution_timer_init() 57 __msan_unpoison(&EG(max_execution_timer_timer), in zend_max_execution_timer_init() 58 sizeof(EG(max_execution_timer_timer))); in zend_max_execution_timer_init() 66 EG(pid) = getpid(); in zend_max_execution_timer_init() 72 sigaction(sev.sigev_signo, NULL, &EG(oldact)); in zend_max_execution_timer_init() 79 if (!EG(pid)) { in zend_max_execution_timer_settime() 83 timer_t timer = EG(max_execution_timer_timer); in zend_max_execution_timer_settime() 107 if (EG(pid) != getpid()) { in zend_max_execution_timer_shutdown() 111 EG(pid) = 0; in zend_max_execution_timer_shutdown() [all …]
|
H A D | zend_objects_API.c | 45 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() 136 …EG(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() 153 …EG(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 D | zend_fibers.c | 131 state->bailout = EG(bailout); in zend_fiber_capture_vm_state() 569 EG(vm_stack) = NULL; in zend_fiber_execute() 573 EG(vm_stack) = stack; in zend_fiber_execute() 587 EG(jit_trace_num) = 0; in zend_fiber_execute() 603 if (EG(exception)) { in zend_fiber_execute() 605 || !(zend_is_graceful_exit(EG(exception)) || zend_is_unwind_exit(EG(exception))) in zend_fiber_execute() 657 EG(active_fiber) = NULL; in zend_fiber_switch_to() 673 EG(active_fiber) = fiber; in zend_fiber_resume() 712 EG(exception) = NULL; in zend_fiber_object_destroy() 726 if (!exception && EG(current_execute_data) && EG(current_execute_data)->func in zend_fiber_object_destroy() [all …]
|
H A D | zend.c | 665 memset(EG(exception_op), 0, sizeof(EG(exception_op))); in zend_init_exception_op() 677 memset(&EG(call_trampoline_op), 0, sizeof(EG(call_trampoline_op))); in zend_init_call_trampoline_op() 1202 if (!EG(bailout)) { in _zend_bailout() 1408 EG(num_errors)++; in zend_error_zstr_at() 1409 EG(errors) = erealloc(EG(errors), sizeof(zend_error_info*) * EG(num_errors)); in zend_error_zstr_at() 1410 EG(errors)[EG(num_errors)-1] = info; in zend_error_zstr_at() 1686 EG(num_errors) = 0; in zend_begin_record_errors() 1687 EG(errors) = NULL; in zend_begin_record_errors() 1711 efree(EG(errors)); in zend_free_recorded_errors() 1712 EG(errors) = NULL; in zend_free_recorded_errors() [all …]
|
H A D | zend_exceptions.c | 140 zend_exception_set_previous(EG(exception), EG(prev_exception)); in zend_exception_save() 143 EG(prev_exception) = EG(exception); in zend_exception_save() 153 zend_exception_set_previous(EG(exception), EG(prev_exception)); in zend_exception_restore() 155 EG(exception) = EG(prev_exception); in zend_exception_restore() 226 EG(opline_before_exception) = EG(current_execute_data)->opline; in zend_throw_exception_internal() 227 EG(current_execute_data)->opline = EG(exception_op); in zend_throw_exception_internal() 246 EG(current_execute_data)->opline = EG(opline_before_exception); in zend_clear_exception() 1021 EG(opline_before_exception) = EG(current_execute_data)->opline; in zend_throw_unwind_exit() 1022 EG(current_execute_data)->opline = EG(exception_op); in zend_throw_unwind_exit() 1029 EG(opline_before_exception) = EG(current_execute_data)->opline; in zend_throw_graceful_exit() [all …]
|
H A D | zend_call_stack.c | 64 EG(call_stack) = (zend_call_stack){0}; in zend_call_stack_init() 67 switch (EG(max_allowed_stack_size)) { in zend_call_stack_init() 69 void *base = EG(call_stack).base; in zend_call_stack_init() 70 size_t size = EG(call_stack).max_size; in zend_call_stack_init() 77 EG(stack_base) = base; in zend_call_stack_init() 78 EG(stack_limit) = zend_call_stack_limit(base, size, EG(reserved_stack_size)); in zend_call_stack_init() 82 EG(stack_base) = (void*)0; in zend_call_stack_init() 83 EG(stack_limit) = (void*)0; in zend_call_stack_init() 88 void *base = EG(call_stack).base; in zend_call_stack_init() 92 EG(stack_base) = base; in zend_call_stack_init() [all …]
|
H A D | zend_objects.c | 109 if (EG(current_execute_data)) { in zend_objects_destroy_object() 130 if (EG(current_execute_data)) { in zend_objects_destroy_object() 158 if (EG(exception)) { in zend_objects_destroy_object() 159 if (EG(exception) == object) { in zend_objects_destroy_object() 162 if (EG(current_execute_data) in zend_objects_destroy_object() 163 && EG(current_execute_data)->func in zend_objects_destroy_object() 165 zend_rethrow_exception(EG(current_execute_data)); in zend_objects_destroy_object() 167 old_exception = EG(exception); in zend_objects_destroy_object() 169 EG(exception) = NULL; in zend_objects_destroy_object() 177 if (EG(exception)) { in zend_objects_destroy_object() [all …]
|
H A D | zend_builtin_functions.c | 406 if (!EG(modified_ini_directives)) { in ZEND_FUNCTION() 420 EG(error_reporting) = err; in ZEND_FUNCTION() 561 if (UNEXPECTED(EG(exception))) { in ZEND_FUNCTION() 604 if (UNEXPECTED(EG(exception))) { in ZEND_FUNCTION() 1168 zend_stack_push(&EG(user_error_handlers_error_reporting), &EG(user_error_handler_error_reporting)); in ZEND_FUNCTION() 1169 zend_stack_push(&EG(user_error_handlers), &EG(user_error_handler)); in ZEND_FUNCTION() 1224 zend_stack_push(&EG(user_exception_handlers), &EG(user_exception_handler)); in ZEND_FUNCTION() 1732 call = EG(current_execute_data); in zend_fetch_debug_backtrace() 1737 if (EG(filename_override)) { in zend_fetch_debug_backtrace() 1741 EG(filename_override) = NULL; in zend_fetch_debug_backtrace() [all …]
|
H A D | zend_ini.c | 104 EG(modified_ini_directives) = NULL; in zend_ini_startup() 105 EG(error_reporting_ini_entry) = NULL; in zend_ini_startup() 112 zend_ini_dtor(EG(ini_directives)); in zend_ini_shutdown() 132 if (EG(modified_ini_directives)) { in zend_ini_deactivate() 140 EG(modified_ini_directives) = NULL; in zend_ini_deactivate() 167 EG(modified_ini_directives) = NULL; in zend_copy_ini_directives() 168 EG(error_reporting_ini_entry) = NULL; in zend_copy_ini_directives() 220 directives = EG(ini_directives); in zend_register_ini_entries_ex() 288 ini_directives = EG(ini_directives); in zend_unregister_ini_entries_ex() 380 if (!EG(modified_ini_directives)) { in zend_alter_ini_entry_ex() [all …]
|
H A D | zend_vm_execute.skl | 20 if (UNEXPECTED(zend_call_stack_overflowed(EG(stack_limit)))) { 23 EG(opline_before_exception) = NULL; 48 if (EG(exception) != NULL) { 52 object_or_called_scope = zend_get_this_object(EG(current_execute_data)); 54 object_or_called_scope = zend_get_called_scope(EG(current_execute_data)); 61 if (EG(current_execute_data)) { 64 execute_data->symbol_table = &EG(symbol_table); 66 EX(prev_execute_data) = EG(current_execute_data);
|
H A D | zend_generators.c | 322 EG(exception) = NULL; in zend_generator_dtor_storage() 332 if (EG(exception)) { in zend_generator_dtor_storage() 335 EG(exception) = old_exception; in zend_generator_dtor_storage() 701 if (UNEXPECTED(EG(exception) != NULL)) { in zend_generator_get_next_delegated_value() 762 if (EG(active_fiber)) { in zend_generator_resume() 776 EG(jit_trace_num) = 0; in zend_generator_resume() 801 if (UNEXPECTED(EG(exception))) { in zend_generator_resume() 807 EG(opline_before_exception)--; in zend_generator_resume() 848 if (UNEXPECTED(EG(exception) != NULL)) { in zend_generator_resume() 851 if (!EG(current_execute_data)) { in zend_generator_resume() [all …]
|
H A D | zend_constants.c | 104 EG(zend_constants) = (HashTable *) malloc(sizeof(HashTable)); in zend_startup_constants() 105 zend_hash_init(EG(zend_constants), 128, NULL, ZEND_CONSTANT_DTOR, 1); in zend_startup_constants() 122 zend_hash_destroy(EG(zend_constants)); in zend_shutdown_constants() 123 free(EG(zend_constants)); in zend_shutdown_constants() 189 if (!EG(current_execute_data)) { in zend_get_halt_offset_constant() 202 c = zend_hash_find_ptr(EG(zend_constants), haltname); in zend_get_halt_offset_constant() 280 zend_constant *c = zend_hash_find_ptr(EG(zend_constants), name); in zend_get_constant_impl() 330 ce = zend_get_called_scope(EG(current_execute_data)); in zend_get_class_constant_ex() 365 if (EG(exception)) { in zend_get_class_constant_ex() 513 c = zend_hash_str_find_ptr(EG(zend_constants), lcname, lcname_len); in zend_get_constant_ex() [all …]
|
H A D | zend_list.c | 36 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() 251 …zend_hash_apply_with_argument(&EG(persistent_list), clean_module_resource, (void *) &(ld->resource… in zend_clean_module_rsrc_dtors_cb() 337 zv = zend_hash_update(&EG(persistent_list), key, &tmp); in zend_register_persistent_resource_ex()
|
H A D | zend_object_handlers.c | 292 if (!EG(exception)) { in zend_deprecated_dynamic_property() 349 scope = EG(fake_scope); in zend_get_property_offset() 445 scope = EG(fake_scope); in zend_get_property_info() 790 scope = EG(fake_scope); in verify_readonly_initialization_access() 1156 return &EG(error_zval); in zend_std_get_property_ptr_ptr() 1160 return &EG(error_zval); in zend_std_get_property_ptr_ptr() 1172 retval = &EG(error_zval); in zend_std_get_property_ptr_ptr() 1545 if (EG(exception)) { in zend_std_get_static_method() 1592 scope = EG(fake_scope); in zend_std_get_static_property_with_info() 1681 scope = EG(fake_scope); in zend_std_get_constructor() [all …]
|
/PHP-8.3/ext/zend_test/ |
H A D | fiber.c | 81 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() 109 if (EG(exception)) { in zend_test_fiber_execute() 111 || !(zend_is_graceful_exit(EG(exception)) || zend_is_unwind_exit(EG(exception))) in zend_test_fiber_execute() 169 zend_object *exception = EG(exception); in zend_test_fiber_object_destroy() 170 EG(exception) = NULL; in zend_test_fiber_object_destroy() 179 if (!exception && EG(current_execute_data) && EG(current_execute_data)->func in zend_test_fiber_object_destroy() 186 if (!EG(current_execute_data)) { in zend_test_fiber_object_destroy() [all …]
|
/PHP-8.3/main/ |
H A D | main_arginfo.h | 45 …REGISTER_LONG_CONSTANT("PHP_WINDOWS_VERSION_MAJOR", EG(windows_version_info).dwMajorVersion, CONST… in register_main_symbols() 48 …REGISTER_LONG_CONSTANT("PHP_WINDOWS_VERSION_MINOR", EG(windows_version_info).dwMinorVersion, CONST… in register_main_symbols() 51 …REGISTER_LONG_CONSTANT("PHP_WINDOWS_VERSION_BUILD", EG(windows_version_info).dwBuildNumber, CONST_… in register_main_symbols() 54 …REGISTER_LONG_CONSTANT("PHP_WINDOWS_VERSION_PLATFORM", EG(windows_version_info).dwPlatformId, CONS… in register_main_symbols() 57 …REGISTER_LONG_CONSTANT("PHP_WINDOWS_VERSION_SP_MAJOR", EG(windows_version_info).wServicePackMajor,… in register_main_symbols() 60 …REGISTER_LONG_CONSTANT("PHP_WINDOWS_VERSION_SP_MINOR", EG(windows_version_info).wServicePackMinor,… in register_main_symbols() 63 …REGISTER_LONG_CONSTANT("PHP_WINDOWS_VERSION_SUITEMASK", EG(windows_version_info).wSuiteMask, CONST… in register_main_symbols() 66 …REGISTER_LONG_CONSTANT("PHP_WINDOWS_VERSION_PRODUCTTYPE", EG(windows_version_info).wProductType, C… in register_main_symbols()
|
/PHP-8.3/ext/opcache/jit/ |
H A D | zend_jit_helpers.c | 23 ZEND_ASSERT(EG(exception)); in undef_result_after_exception() 406 if (EG(exception)) { in zend_jit_fetch_dim_r_helper() 438 if (EG(exception)) { in zend_jit_fetch_dim_r_helper() 466 if (EG(exception)) { in zend_jit_fetch_dim_r_helper() 548 if (EG(exception)) { in zend_jit_fetch_dim_is_helper() 608 if (EG(exception)) { in zend_jit_fetch_dim_is_helper() 679 if (EG(exception)) { in zend_jit_fetch_dim_isset_helper() 715 if (EG(exception)) { in zend_jit_fetch_dim_isset_helper() 848 if (EG(exception)) { in zend_jit_fetch_dim_rw_helper() 981 if (EG(exception)) { in zend_jit_fetch_dim_w_helper() [all …]
|
/PHP-8.3/Zend/tests/ |
H A D | bug78868.phpt | 2 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(null, 2); //causes constant resolving, which runs autoload, all with EG(fake_sc…
|
/PHP-8.3/sapi/phpdbg/ |
H A D | phpdbg_prompt.c | 521 if (EG(exception)) { in phpdbg_compile_stdin() 570 if (EG(exception)) { in phpdbg_compile() 717 EG(exception) = NULL; in phpdbg_handle_exception() 723 if (EG(exception)) { in phpdbg_handle_exception() 724 EG(exception) = NULL; in phpdbg_handle_exception() 744 EG(exit_status) = 255; in phpdbg_handle_exception() 909 if (EG(exception) && !zend_is_unwind_exit(EG(exception))) { in PHPDBG_COMMAND() 972 if (EG(exception)) { in PHPDBG_COMMAND() 973 ex = EG(exception); in PHPDBG_COMMAND() 990 EG(exit_status) = 0; in PHPDBG_COMMAND() [all …]
|
H A D | phpdbg_info.c | 65 phpdbg_notice("Included files: %d", zend_hash_num_elements(&EG(included_files))); in PHPDBG_INFO() 72 ZEND_HASH_MAP_FOREACH_STR_KEY(&EG(included_files), fname) { in PHPDBG_INFO() 106 if (EG(zend_constants)) { in PHPDBG_INFO() 108 ZEND_HASH_MAP_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_MAP_FOREACH_PTR(EG(class_table), ce) { in PHPDBG_INFO() [all …]
|
H A D | phpdbg_print.c | 43 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_MAP_FOREACH_STR_KEY_PTR(EG(function_table), name, func) { in phpdbg_print_opcodes() 341 ZEND_HASH_MAP_FOREACH_PTR(EG(class_table), ce) { in phpdbg_print_opcodes()
|
/PHP-8.3/ext/opcache/ |
H A D | ZendAccelerator.c | 1850 EG(num_errors) = 0; in opcache_compile_file() 1851 EG(errors) = NULL; in opcache_compile_file() 2366 zend_persist_warnings_calc(EG(num_errors), EG(errors)); in zend_accel_inheritance_cache_add() 2424 entry->warnings = zend_persist_warnings(EG(num_errors), EG(errors)); in zend_accel_inheritance_cache_add() 2428 EG(num_errors) = 0; in zend_accel_inheritance_cache_add() 2429 EG(errors) = NULL; in zend_accel_inheritance_cache_add() 3958 zend_hash_update_ptr(&errors, key, EG(errors)[EG(num_errors)-1]); 3990 EG(class_table), key, zv, EG(persistent_classes_count)) { 4300 EG(persistent_constants_count) = EG(zend_constants)->nNumUsed; 4303 EG(persistent_functions_count) = EG(function_table)->nNumUsed; [all …]
|
/PHP-8.3/ext/sodium/ |
H A D | libsodium.c | 199 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 225 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 250 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 279 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 300 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 333 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 375 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 415 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 454 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 493 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() [all …]
|