/PHP-8.0/Zend/ |
H A D | zend_execute_API.c | 137 EG(symtable_cache_ptr) = EG(symtable_cache); 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() 396 while (EG(symtable_cache_ptr) > EG(symtable_cache)) { in shutdown_executor() 413 if (EG(ht_iterators) != EG(ht_iterators_slots)) { in shutdown_executor() [all …]
|
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_objects_API.c | 44 EG(flags) |= EG_FLAGS_OBJECT_STORE_NO_REUSE; in zend_objects_store_call_destructors() 129 uint32_t new_size = 2 * EG(objects_store).size; in zend_objects_store_put_cold() 131 …EG(objects_store).object_buckets = (zend_object **) erealloc(EG(objects_store).object_buckets, new… in zend_objects_store_put_cold() 133 EG(objects_store).size = new_size; in zend_objects_store_put_cold() 134 handle = EG(objects_store).top++; in zend_objects_store_put_cold() 136 EG(objects_store).object_buckets[handle] = object; in zend_objects_store_put_cold() 146 …if (EG(objects_store).free_list_head != -1 && EXPECTED(!(EG(flags) & EG_FLAGS_OBJECT_STORE_NO_REUS… in zend_objects_store_put() 147 handle = EG(objects_store).free_list_head; in zend_objects_store_put() 148 …EG(objects_store).free_list_head = GET_OBJ_BUCKET_NUMBER(EG(objects_store).object_buckets[handle]); in zend_objects_store_put() 149 } else if (UNEXPECTED(EG(objects_store).top == EG(objects_store).size)) { in zend_objects_store_put() [all …]
|
H A D | zend_ini.c | 97 EG(modified_ini_directives) = NULL; in zend_ini_startup() 98 EG(error_reporting_ini_entry) = NULL; in zend_ini_startup() 105 zend_ini_dtor(EG(ini_directives)); in zend_ini_shutdown() 125 if (EG(modified_ini_directives)) { in zend_ini_deactivate() 133 EG(modified_ini_directives) = NULL; in zend_ini_deactivate() 160 EG(modified_ini_directives) = NULL; in zend_copy_ini_directives() 161 EG(error_reporting_ini_entry) = NULL; in zend_copy_ini_directives() 212 if (directives != EG(ini_directives)) { in zend_register_ini_entries() 213 directives = EG(ini_directives); in zend_register_ini_entries() 333 if (!EG(modified_ini_directives)) { in zend_alter_ini_entry_ex() [all …]
|
H A D | zend_exceptions.c | 125 zend_exception_set_previous(EG(exception), EG(prev_exception)); in zend_exception_save() 127 if (EG(exception)) { in zend_exception_save() 128 EG(prev_exception) = EG(exception); in zend_exception_save() 130 EG(exception) = NULL; in zend_exception_save() 138 zend_exception_set_previous(EG(exception), EG(prev_exception)); in zend_exception_restore() 140 EG(exception) = EG(prev_exception); in zend_exception_restore() 201 EG(opline_before_exception) = EG(current_execute_data)->opline; in zend_throw_exception_internal() 202 EG(current_execute_data)->opline = EG(exception_op); in zend_throw_exception_internal() 221 EG(current_execute_data)->opline = EG(opline_before_exception); in zend_clear_exception() 1020 EG(opline_before_exception) = EG(current_execute_data)->opline; in zend_throw_unwind_exit() [all …]
|
H A D | zend.c | 558 memset(EG(exception_op), 0, sizeof(EG(exception_op))); in zend_init_exception_op() 570 memset(&EG(call_trampoline_op), 0, sizeof(EG(call_trampoline_op))); in zend_init_call_trampoline_op() 1150 if (EG(exception)) { in zenderror() 1163 if (!EG(bailout)) { in BEGIN_EXTERN_C() 1316 if (EG(exception)) { in zend_error_impl() 1331 EG(exception) = NULL; in zend_error_impl() 1422 EG(exit_status) = 255; in zend_error_impl() 1650 EG(exception) = NULL; in zend_user_exception_handler() 1656 if (EG(exception)) { in zend_user_exception_handler() 1658 EG(exception) = NULL; in zend_user_exception_handler() [all …]
|
H A D | zend_builtin_functions.c | 401 if (!EG(modified_ini_directives)) { in ZEND_FUNCTION() 415 EG(error_reporting) = err; in ZEND_FUNCTION() 1192 zend_stack_push(&EG(user_error_handlers_error_reporting), &EG(user_error_handler_error_reporting)); in ZEND_FUNCTION() 1193 zend_stack_push(&EG(user_error_handlers), &EG(user_error_handler)); in ZEND_FUNCTION() 1196 ZVAL_UNDEF(&EG(user_error_handler)); in ZEND_FUNCTION() 1214 ZVAL_UNDEF(&EG(user_error_handler)); in ZEND_FUNCTION() 1219 ZVAL_UNDEF(&EG(user_error_handler)); in ZEND_FUNCTION() 1222 …EG(user_error_handler_error_reporting) = zend_stack_int_top(&EG(user_error_handlers_error_reportin… in ZEND_FUNCTION() 1249 zend_stack_push(&EG(user_exception_handlers), &EG(user_exception_handler)); in ZEND_FUNCTION() 1736 if (EG(opline_before_exception)) { in ZEND_FUNCTION() [all …]
|
H A D | zend_objects.c | 105 if (EG(current_execute_data)) { in zend_objects_destroy_object() 126 if (EG(current_execute_data)) { in zend_objects_destroy_object() 154 if (EG(exception)) { in zend_objects_destroy_object() 155 if (EG(exception) == object) { in zend_objects_destroy_object() 158 old_exception = EG(exception); in zend_objects_destroy_object() 159 EG(exception) = NULL; in zend_objects_destroy_object() 166 if (EG(exception)) { in zend_objects_destroy_object() 167 zend_exception_set_previous(EG(exception), old_exception); in zend_objects_destroy_object() 169 EG(exception) = old_exception; in zend_objects_destroy_object()
|
H A D | zend_vm_execute.skl | 38 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 D | zend_list.c | 37 index = zend_hash_next_free_element(&EG(regular_list)); in zend_list_insert() 44 return zend_hash_index_add_new(&EG(regular_list), index, &zv); in zend_list_insert() 50 return zend_hash_index_del(&EG(regular_list), res->handle); in zend_list_delete() 59 zend_hash_index_del(&EG(regular_list), res->handle); in zend_list_free() 205 zend_hash_init(&EG(regular_list), 8, NULL, list_entry_destructor, 0); in zend_init_rsrc_list() 206 EG(regular_list).nNextFreeElement = 0; in zend_init_rsrc_list() 212 zend_hash_init(&EG(persistent_list), 8, NULL, plist_entry_destructor, 1); in zend_init_rsrc_plist() 247 …zend_hash_apply_with_argument(&EG(persistent_list), clean_module_resource, (void *) &(ld->resource… in zend_clean_module_rsrc_dtors_cb() 332 zv = zend_hash_update(&EG(persistent_list), key, &tmp); in zend_register_persistent_resource_ex()
|
H A D | zend_execute.h | 183 …K_GLOBAL ZEND_ASSERT(EG(vm_stack_top) > (zval *) EG(vm_stack) && EG(vm_stack_end) > (zval *) EG(vm… 204 zend_execute_data *call = (zend_execute_data*)EG(vm_stack_top); in zend_vm_stack_push_call_frame_ex() 214 EG(vm_stack_top) = (zval*)((char*)call + used_stack); in zend_vm_stack_push_call_frame_ex() 274 zend_vm_stack p = EG(vm_stack); in zend_vm_stack_free_call_frame_ex() 277 ZEND_ASSERT(call == (zend_execute_data*)ZEND_VM_STACK_ELEMENTS(EG(vm_stack))); in zend_vm_stack_free_call_frame_ex() 278 EG(vm_stack_top) = prev->top; in zend_vm_stack_free_call_frame_ex() 279 EG(vm_stack_end) = prev->end; in zend_vm_stack_free_call_frame_ex() 280 EG(vm_stack) = prev; in zend_vm_stack_free_call_frame_ex() 283 EG(vm_stack_top) = (zval*)call; in zend_vm_stack_free_call_frame_ex() 300 if (EXPECTED((uint32_t)(EG(vm_stack_end) - EG(vm_stack_top)) > additional_args)) { in zend_vm_stack_extend_call_frame() [all …]
|
H A D | zend_constants.c | 103 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() 368 ce = zend_get_called_scope(EG(current_execute_data)); in zend_get_constant_ex() 437 c = zend_hash_str_find_ptr(EG(zend_constants), lcname, lcname_len); in zend_get_constant_ex() [all …]
|
H A D | zend_generators.c | 273 Z_OBJ_P(fast_call) = EG(exception); in zend_generator_dtor_storage() 274 EG(exception) = NULL; in zend_generator_dtor_storage() 667 if (UNEXPECTED(EG(exception) != NULL)) { in zend_generator_get_next_delegated_value() 688 if (UNEXPECTED(EG(exception) != NULL)) { in zend_generator_get_next_delegated_value() 739 EG(jit_trace_num) = 0; in zend_generator_resume() 758 EG(jit_trace_num) = original_jit_trace_num; in zend_generator_resume() 795 EG(jit_trace_num) = original_jit_trace_num; in zend_generator_resume() 801 if (UNEXPECTED(EG(exception) != NULL)) { in zend_generator_resume() 804 if (!EG(current_execute_data)) { in zend_generator_resume() 806 } else if (EG(current_execute_data)->func && in zend_generator_resume() [all …]
|
H A D | zend_globals_macros.h | 42 # define EG(v) ZEND_TSRMG_FAST(executor_globals_offset, zend_executor_globals *, v) macro 44 # define EG(v) (executor_globals.v) macro
|
H A D | zend_object_handlers.c | 304 scope = EG(fake_scope); in zend_get_property_offset() 400 scope = EG(fake_scope); in zend_get_property_info() 669 ZEND_ASSERT(EG(exception)); in zend_std_read_property() 768 ZEND_ASSERT(EG(exception)); in zend_std_write_property() 938 retval = &EG(error_zval); in zend_std_get_property_ptr_ptr() 965 return &EG(error_zval); in zend_std_get_property_ptr_ptr() 978 retval = &EG(error_zval); in zend_std_get_property_ptr_ptr() 1042 ZEND_ASSERT(EG(exception)); in zend_std_unset_property() 1387 scope = EG(fake_scope); in zend_std_get_static_property_with_info() 1474 scope = EG(fake_scope); in zend_std_get_constructor() [all …]
|
/PHP-8.0/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(2); //causes constant resolving, which runs autoload, all with EG(fake_scope) =…
|
/PHP-8.0/ext/opcache/jit/ |
H A D | zend_jit_helpers.c | 23 ZEND_ASSERT(EG(exception)); in undef_result_after_exception() 485 if (EG(exception)) { in zend_jit_fetch_dim_r_helper() 493 if (EG(exception)) { in zend_jit_fetch_dim_r_helper() 586 if (EG(exception)) { in zend_jit_fetch_dim_is_helper() 594 if (EG(exception)) { in zend_jit_fetch_dim_is_helper() 681 if (EG(exception)) { in zend_jit_fetch_dim_isset_helper() 762 if (EG(exception)) { in zend_jit_fetch_dim_rw_helper() 857 if (EG(exception)) { in zend_jit_fetch_dim_w_helper() 1416 if (!EG(exception)) { in zend_jit_fetch_dim_obj_helper() 1689 value = zend_hash_add_new(&EG(symbol_table), varname, &EG(uninitialized_zval)); in zend_jit_fetch_global_helper() [all …]
|
/PHP-8.0/sapi/phpdbg/ |
H A D | phpdbg_prompt.c | 525 if (EG(exception)) { in phpdbg_compile_stdin() 573 if (EG(exception)) { in phpdbg_compile() 720 EG(exception) = NULL; in phpdbg_handle_exception() 726 if (EG(exception)) { in phpdbg_handle_exception() 727 EG(exception) = NULL; in phpdbg_handle_exception() 747 EG(exit_status) = 255; in phpdbg_handle_exception() 917 if (EG(exception)) { in PHPDBG_COMMAND() 980 if (EG(exception)) { in PHPDBG_COMMAND() 981 ex = EG(exception); in PHPDBG_COMMAND() 1004 EG(exit_status) = 0; in PHPDBG_COMMAND() [all …]
|
H A D | phpdbg_print.c | 42 if (PHPDBG_G(in_execution) && EG(current_execute_data)) { in PHPDBG_PRINT() 43 phpdbg_print_opline(phpdbg_user_execute_data(EG(current_execute_data)), 1); in PHPDBG_PRINT() 124 if (PHPDBG_G(in_execution) && EG(current_execute_data)) { in PHPDBG_PRINT() 211 HashTable *func_table = EG(function_table); in PHPDBG_PRINT() 229 } else if (!EG(function_table)) { in PHPDBG_PRINT() 233 func_table = EG(function_table); in PHPDBG_PRINT() 270 ZEND_HASH_FOREACH_STR_KEY_PTR(EG(class_table), rt_name, func) { in phpdbg_print_opcodes_function() 306 ZEND_HASH_FOREACH_STR_KEY_PTR(EG(class_table), rt_name, ce) { in phpdbg_print_opcodes_method() 364 ZEND_HASH_FOREACH_STR_KEY_PTR(EG(class_table), rt_name, ce) { in phpdbg_print_opcodes_class() 390 ZEND_HASH_FOREACH_STR_KEY_PTR(EG(function_table), name, func) { in phpdbg_print_opcodes() [all …]
|
H A D | phpdbg_info.c | 65 …phpdbg_notice("includedfilecount", "num=\"%d\"", "Included files: %d", zend_hash_num_elements(&EG(… in PHPDBG_INFO() 72 ZEND_HASH_FOREACH_STR_KEY(&EG(included_files), fname) { in PHPDBG_INFO() 103 if (EG(zend_constants)) { in PHPDBG_INFO() 105 ZEND_HASH_FOREACH_PTR(EG(zend_constants), data) { in PHPDBG_INFO() 180 if (!EG(current_execute_data) || !EG(current_execute_data)->func) { in phpdbg_print_symbols() 188 symtable = &EG(symbol_table); in phpdbg_print_symbols() 209 zend_op_array *ops = &EG(current_execute_data)->func->op_array; in phpdbg_print_symbols() 307 …zend_bool in_executor = PHPDBG_G(in_execution) && EG(current_execute_data) && EG(current_execute_d… 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 D | phpdbg_frame.c | 116 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() 325 if (EG(current_execute_data) == gen->execute_data) { in phpdbg_open_generator_frame() 334 EG(current_execute_data) = gen->execute_data; in phpdbg_open_generator_frame() 340 s = phpdbg_compile_stackframe(EG(current_execute_data)); in phpdbg_open_generator_frame()
|
/PHP-8.0/ext/opcache/ |
H A D | ZendAccelerator.c | 1717 if (!EG(exception)) { in opcache_compile_file() 1894 if (!EG(current_execute_data) || !EG(current_execute_data)->opline || in file_cache_compile_file() 2088 if (!EG(exception)) { in persistent_compile_file() 3292 if (EG(class_table)) { 3619 EG(exception) = NULL; 4348 EG(persistent_constants_count) = EG(zend_constants)->nNumUsed; 4351 EG(persistent_functions_count) = EG(function_table)->nNumUsed; 4353 if (EG(class_table)) { 4354 EG(persistent_classes_count) = EG(class_table)->nNumUsed; 4401 EG(fake_scope) = NULL; [all …]
|
/PHP-8.0/ext/sodium/ |
H A D | libsodium.c | 382 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 408 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 433 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 462 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 483 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 516 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 558 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 598 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 637 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 676 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() [all …]
|
/PHP-8.0/sapi/cli/ |
H A D | php_cli.c | 296 EG(exit_status) = 255; in sapi_cli_ub_write() 674 EG(exit_status) = 0; in do_cli() 849 EG(exit_status) = 1; in do_cli() 954 if (EG(exit_status) == SUCCESS) { in do_cli() 1007 EG(exit_status) = 1; in do_cli() 1061 if (EG(exception)) { in do_cli() 1066 EG(exception) = NULL; in do_cli() 1067 EG(exit_status) = 1; in do_cli() 1088 EG(exit_status) = 1; in do_cli() 1116 return EG(exit_status); in do_cli() [all …]
|
/PHP-8.0/sapi/fuzzer/ |
H A D | fuzzer-sapi.c | 185 if (EG(exception)) { in fuzzer_request_shutdown() 186 zend_object_release(EG(exception)); in fuzzer_request_shutdown() 187 EG(exception) = NULL; in fuzzer_request_shutdown() 211 EG(current_execute_data) = &execute_data; in fuzzer_setup_dummy_frame()
|