/php-src/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 | 143 EG(symtable_cache_ptr) = EG(symtable_cache); in init_executor() 188 EG(ht_iterators) = EG(ht_iterators_slots); in init_executor() 189 memset(EG(ht_iterators), 0, sizeof(EG(ht_iterators_slots))); in init_executor() 191 EG(persistent_constants_count) = EG(zend_constants)->nNumUsed; in init_executor() 192 EG(persistent_functions_count) = EG(function_table)->nNumUsed; in init_executor() 193 EG(persistent_classes_count) = EG(class_table)->nNumUsed; in init_executor() 195 EG(get_gc_buffer).start = EG(get_gc_buffer).end = EG(get_gc_buffer).cur = NULL; in init_executor() 208 EG(active) = 1; in init_executor() 488 while (EG(symtable_cache_ptr) > EG(symtable_cache)) { in shutdown_executor() 506 if (EG(ht_iterators) != EG(ht_iterators_slots)) { in shutdown_executor() [all …]
|
H A D | zend_max_execution_timer.c | 55 if (EG(pid) == pid) { in zend_max_execution_timer_init() 61 sev.sigev_value.sival_ptr = &EG(max_execution_timer_timer); in zend_max_execution_timer_init() 71 __msan_unpoison(&EG(max_execution_timer_timer), in zend_max_execution_timer_init() 72 sizeof(EG(max_execution_timer_timer))); in zend_max_execution_timer_init() 80 EG(pid) = pid; in zend_max_execution_timer_init() 86 sigaction(sev.sigev_signo, NULL, &EG(oldact)); in zend_max_execution_timer_init() 93 if (!EG(pid)) { in zend_max_execution_timer_settime() 97 timer_t timer = EG(max_execution_timer_timer); in zend_max_execution_timer_settime() 121 if (EG(pid) != getpid()) { in zend_max_execution_timer_shutdown() 125 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() 130 uint32_t new_size = 2 * EG(objects_store).size; in zend_objects_store_put_cold() 132 …EG(objects_store).object_buckets = (zend_object **) erealloc(EG(objects_store).object_buckets, new… in zend_objects_store_put_cold() 134 EG(objects_store).size = new_size; in zend_objects_store_put_cold() 135 handle = EG(objects_store).top++; in zend_objects_store_put_cold() 137 EG(objects_store).object_buckets[handle] = object; in zend_objects_store_put_cold() 147 …if (EG(objects_store).free_list_head != -1 && EXPECTED(!(EG(flags) & EG_FLAGS_OBJECT_STORE_NO_REUS… in zend_objects_store_put() 148 handle = EG(objects_store).free_list_head; in zend_objects_store_put() 149 …EG(objects_store).free_list_head = GET_OBJ_BUCKET_NUMBER(EG(objects_store).object_buckets[handle]); in zend_objects_store_put() 150 } else if (UNEXPECTED(EG(objects_store).top == EG(objects_store).size)) { in zend_objects_store_put() [all …]
|
H A D | zend_fibers.c | 132 state->bailout = EG(bailout); in zend_fiber_capture_vm_state() 576 EG(vm_stack) = NULL; in zend_fiber_execute() 580 EG(vm_stack) = stack; in zend_fiber_execute() 594 EG(jit_trace_num) = 0; in zend_fiber_execute() 610 if (EG(exception)) { in zend_fiber_execute() 612 || !(zend_is_graceful_exit(EG(exception)) || zend_is_unwind_exit(EG(exception))) in zend_fiber_execute() 668 EG(active_fiber) = NULL; in zend_fiber_switch_to() 684 EG(active_fiber) = fiber; in zend_fiber_resume_internal() 773 EG(exception) = NULL; in zend_fiber_object_destroy() 787 if (!exception && EG(current_execute_data) && EG(current_execute_data)->func in zend_fiber_object_destroy() [all …]
|
H A D | zend.c | 674 memset(EG(exception_op), 0, sizeof(EG(exception_op))); in zend_init_exception_op() 686 memset(&EG(call_trampoline_op), 0, sizeof(EG(call_trampoline_op))); in zend_init_call_trampoline_op() 1253 if (!EG(bailout)) { in _zend_bailout() 1459 EG(num_errors)++; in zend_error_zstr_at() 1460 EG(errors) = erealloc(EG(errors), sizeof(zend_error_info*) * EG(num_errors)); in zend_error_zstr_at() 1461 EG(errors)[EG(num_errors)-1] = info; in zend_error_zstr_at() 1740 EG(num_errors) = 0; in zend_begin_record_errors() 1741 EG(errors) = NULL; in zend_begin_record_errors() 1765 efree(EG(errors)); in zend_free_recorded_errors() 1766 EG(errors) = NULL; in zend_free_recorded_errors() [all …]
|
H A D | zend_exceptions.c | 144 zend_exception_set_previous(EG(exception), EG(prev_exception)); in zend_exception_save() 147 EG(prev_exception) = EG(exception); in zend_exception_save() 157 zend_exception_set_previous(EG(exception), EG(prev_exception)); in zend_exception_restore() 159 EG(exception) = EG(prev_exception); in zend_exception_restore() 230 EG(opline_before_exception) = EG(current_execute_data)->opline; in zend_throw_exception_internal() 231 EG(current_execute_data)->opline = EG(exception_op); in zend_throw_exception_internal() 250 EG(current_execute_data)->opline = EG(opline_before_exception); in zend_clear_exception() 1023 EG(opline_before_exception) = EG(current_execute_data)->opline; in zend_throw_unwind_exit() 1024 EG(current_execute_data)->opline = EG(exception_op); in zend_throw_unwind_exit() 1031 EG(opline_before_exception) = EG(current_execute_data)->opline; in zend_throw_graceful_exit() [all …]
|
H A D | zend_objects.c | 130 if (EG(current_execute_data)) { in zend_objects_destroy_object() 151 if (EG(current_execute_data)) { in zend_objects_destroy_object() 179 if (EG(exception)) { in zend_objects_destroy_object() 180 if (EG(exception) == object) { in zend_objects_destroy_object() 183 if (EG(current_execute_data) in zend_objects_destroy_object() 184 && EG(current_execute_data)->func in zend_objects_destroy_object() 186 zend_rethrow_exception(EG(current_execute_data)); in zend_objects_destroy_object() 188 old_exception = EG(exception); in zend_objects_destroy_object() 190 EG(exception) = NULL; in zend_objects_destroy_object() 198 if (EG(exception)) { in zend_objects_destroy_object() [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_builtin_functions.c | 87 if (EG(exception)) { in ZEND_FUNCTION() 92 EG(exit_status) = status; in ZEND_FUNCTION() 95 ZEND_ASSERT(!EG(exception)); in ZEND_FUNCTION() 451 EG(error_reporting) = err; in ZEND_FUNCTION() 635 if (UNEXPECTED(EG(exception))) { in ZEND_FUNCTION() 845 if (EG(exception)) { in ZEND_FUNCTION() 1285 zend_stack_push(&EG(user_error_handlers), &EG(user_error_handler)); in ZEND_FUNCTION() 1340 zend_stack_push(&EG(user_exception_handlers), &EG(user_exception_handler)); in ZEND_FUNCTION() 1853 if (EG(filename_override)) { in zend_fetch_debug_backtrace() 1857 EG(filename_override) = NULL; in zend_fetch_debug_backtrace() [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_observer.c | 78 ZEND_VM_SET_OPCODE_HANDLER(&EG(call_trampoline_op)); in zend_observer_post_startup() 82 ZEND_VM_SET_OPCODE_HANDLER(EG(exception_op)); in zend_observer_post_startup() 83 ZEND_VM_SET_OPCODE_HANDLER(EG(exception_op) + 1); in zend_observer_post_startup() 84 ZEND_VM_SET_OPCODE_HANDLER(EG(exception_op) + 2); in zend_observer_post_startup() 102 EG(current_observed_frame) = NULL; in zend_observer_activate() 271 EG(current_observed_frame) = execute_data; in zend_observer_fcall_begin_prechecked() 321 …zend_execute_data *execute_data = EG(current_observed_frame), *original_execute_data = EG(current_… in zend_observer_fcall_end_all() 322 EG(current_observed_frame) = NULL; in zend_observer_fcall_end_all() 324 EG(current_execute_data) = execute_data; in zend_observer_fcall_end_all() 328 EG(current_execute_data) = original_execute_data; in zend_observer_fcall_end_all() [all …]
|
H A D | zend_call_stack.c | 85 EG(call_stack) = (zend_call_stack){0}; in zend_call_stack_init() 88 switch (EG(max_allowed_stack_size)) { in zend_call_stack_init() 90 void *base = EG(call_stack).base; in zend_call_stack_init() 91 size_t size = EG(call_stack).max_size; in zend_call_stack_init() 98 EG(stack_base) = base; in zend_call_stack_init() 99 EG(stack_limit) = zend_call_stack_limit(base, size, EG(reserved_stack_size)); in zend_call_stack_init() 103 EG(stack_base) = (void*)0; in zend_call_stack_init() 104 EG(stack_limit) = (void*)0; in zend_call_stack_init() 109 void *base = EG(call_stack).base; in zend_call_stack_init() 113 EG(stack_base) = base; in zend_call_stack_init() [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_generators.c | 314 EG(exception) = NULL; in zend_generator_dtor_storage() 325 if (EG(exception)) { in zend_generator_dtor_storage() 328 EG(exception) = old_exception; in zend_generator_dtor_storage() 700 if (UNEXPECTED(EG(exception) != NULL)) { in zend_generator_get_next_delegated_value() 721 if (UNEXPECTED(EG(exception) != NULL)) { in zend_generator_get_next_delegated_value() 761 if (EG(active_fiber)) { in zend_generator_resume() 775 EG(jit_trace_num) = 0; in zend_generator_resume() 842 EG(jit_trace_num) = original_jit_trace_num; 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_object_handlers.c | 325 if (!EG(exception)) { in zend_deprecated_dynamic_property() 344 return EG(fake_scope); in get_fake_or_executed_scope() 813 if (EG(exception)) { in zend_std_read_property() 1383 return &EG(error_zval); in zend_std_get_property_ptr_ptr() 1387 return &EG(error_zval); in zend_std_get_property_ptr_ptr() 1393 return &EG(error_zval); in zend_std_get_property_ptr_ptr() 1407 retval = &EG(error_zval); in zend_std_get_property_ptr_ptr() 1708 func = &EG(trampoline); in zend_get_property_hook_trampoline() 1901 if (EG(exception)) { in zend_std_get_static_method() 2246 if (EG(exception)) { in zend_std_has_property() [all …]
|
/php-src/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() 97 EG(jit_trace_num) = 0; in zend_test_fiber_execute() 110 if (EG(exception)) { in zend_test_fiber_execute() 112 || !(zend_is_graceful_exit(EG(exception)) || zend_is_unwind_exit(EG(exception))) in zend_test_fiber_execute() 170 zend_object *exception = EG(exception); in zend_test_fiber_object_destroy() 171 EG(exception) = NULL; in zend_test_fiber_object_destroy() 180 if (!exception && EG(current_execute_data) && EG(current_execute_data)->func in zend_test_fiber_object_destroy() 187 if (!EG(current_execute_data)) { in zend_test_fiber_object_destroy() [all …]
|
/php-src/main/ |
H A D | main_arginfo.h | 44 …REGISTER_LONG_CONSTANT("PHP_WINDOWS_VERSION_MAJOR", EG(windows_version_info).dwMajorVersion, CONST… in register_main_symbols() 47 …REGISTER_LONG_CONSTANT("PHP_WINDOWS_VERSION_MINOR", EG(windows_version_info).dwMinorVersion, CONST… in register_main_symbols() 50 …REGISTER_LONG_CONSTANT("PHP_WINDOWS_VERSION_BUILD", EG(windows_version_info).dwBuildNumber, CONST_… in register_main_symbols() 53 …REGISTER_LONG_CONSTANT("PHP_WINDOWS_VERSION_PLATFORM", EG(windows_version_info).dwPlatformId, CONS… in register_main_symbols() 56 …REGISTER_LONG_CONSTANT("PHP_WINDOWS_VERSION_SP_MAJOR", EG(windows_version_info).wServicePackMajor,… in register_main_symbols() 59 …REGISTER_LONG_CONSTANT("PHP_WINDOWS_VERSION_SP_MINOR", EG(windows_version_info).wServicePackMinor,… in register_main_symbols() 62 …REGISTER_LONG_CONSTANT("PHP_WINDOWS_VERSION_SUITEMASK", EG(windows_version_info).wSuiteMask, CONST… in register_main_symbols() 65 …REGISTER_LONG_CONSTANT("PHP_WINDOWS_VERSION_PRODUCTTYPE", EG(windows_version_info).wProductType, C… in register_main_symbols()
|
/php-src/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-src/ext/opcache/jit/ |
H A D | zend_jit_helpers.c | 23 ZEND_ASSERT(EG(exception)); in undef_result_after_exception() 500 if (EG(exception)) { in zend_jit_fetch_dim_r_helper() 532 if (EG(exception)) { in zend_jit_fetch_dim_r_helper() 560 if (EG(exception)) { in zend_jit_fetch_dim_r_helper() 642 if (EG(exception)) { in zend_jit_fetch_dim_is_helper() 702 if (EG(exception)) { in zend_jit_fetch_dim_is_helper() 773 if (EG(exception)) { in zend_jit_fetch_dim_isset_helper() 809 if (EG(exception)) { in zend_jit_fetch_dim_isset_helper() 942 if (EG(exception)) { in zend_jit_fetch_dim_rw_helper() 1075 if (EG(exception)) { in zend_jit_fetch_dim_w_helper() [all …]
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_prompt.c | 521 if (EG(exception)) { in phpdbg_compile_stdin() 570 if (EG(exception)) { in phpdbg_compile() 715 EG(exception) = NULL; in phpdbg_handle_exception() 721 if (EG(exception)) { in phpdbg_handle_exception() 722 EG(exception) = NULL; in phpdbg_handle_exception() 742 EG(exit_status) = 255; in phpdbg_handle_exception() 907 if (EG(exception) && !zend_is_unwind_exit(EG(exception))) { in PHPDBG_COMMAND() 970 if (EG(exception)) { in PHPDBG_COMMAND() 971 ex = EG(exception); in PHPDBG_COMMAND() 988 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() 99 if (PHPDBG_G(in_execution) && EG(current_execute_data)) { in PHPDBG_PRINT() 100 zend_op_array *ops = &phpdbg_user_execute_data(EG(current_execute_data))->func->op_array; in PHPDBG_PRINT() 182 HashTable *func_table = EG(function_table); in PHPDBG_PRINT() 200 } else if (!EG(function_table)) { in PHPDBG_PRINT() 204 func_table = EG(function_table); in PHPDBG_PRINT() 236 zend_function *func = zend_hash_str_find_ptr(EG(function_table), function, len); in phpdbg_print_opcodes_function() 333 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(EG(function_table), name, func) { in phpdbg_print_opcodes() 339 ZEND_HASH_MAP_FOREACH_PTR(EG(class_table), ce) { in phpdbg_print_opcodes()
|
/php-src/ext/opcache/ |
H A D | ZendAccelerator.c | 1861 EG(num_errors) = 0; in opcache_compile_file() 1862 EG(errors) = NULL; in opcache_compile_file() 2377 zend_persist_warnings_calc(EG(num_errors), EG(errors)); in zend_accel_inheritance_cache_add() 2448 entry->warnings = zend_persist_warnings(EG(num_errors), EG(errors)); in zend_accel_inheritance_cache_add() 2452 EG(num_errors) = 0; in zend_accel_inheritance_cache_add() 2453 EG(errors) = NULL; in zend_accel_inheritance_cache_add() 3989 zend_hash_update_ptr(&errors, key, EG(errors)[EG(num_errors)-1]); 4021 EG(class_table), key, zv, EG(persistent_classes_count)) { 4331 EG(persistent_constants_count) = EG(zend_constants)->nNumUsed; 4334 EG(persistent_functions_count) = EG(function_table)->nNumUsed; [all …]
|
/php-src/ext/sodium/ |
H A D | libsodium.c | 198 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 224 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 249 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 278 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 299 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 332 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 374 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 414 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 453 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 492 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() [all …]
|