Home
last modified time | relevance | path

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

12345678

/PHP-8.2/Zend/
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_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()
205 EG(active) = 1; in init_executor()
459 while (EG(symtable_cache_ptr) > EG(symtable_cache)) { in shutdown_executor()
476 if (EG(ht_iterators) != EG(ht_iterators_slots)) { in shutdown_executor()
[all …]
H A Dzend_max_execution_timer.c45 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 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.c113 state->bailout = EG(bailout); in zend_fiber_capture_vm_state()
490 EG(vm_stack) = NULL; in zend_fiber_execute()
494 EG(vm_stack) = stack; in zend_fiber_execute()
508 EG(jit_trace_num) = 0; in zend_fiber_execute()
519 if (EG(exception)) { in zend_fiber_execute()
521 || !(zend_is_graceful_exit(EG(exception)) || zend_is_unwind_exit(EG(exception))) in zend_fiber_execute()
573 EG(active_fiber) = NULL; in zend_fiber_switch_to()
589 EG(active_fiber) = fiber; in zend_fiber_resume()
631 EG(exception) = NULL; in zend_fiber_object_destroy()
645 if (!exception && EG(current_execute_data) && EG(current_execute_data)->func in zend_fiber_object_destroy()
[all …]
H A Dzend.c604 memset(EG(exception_op), 0, sizeof(EG(exception_op))); in zend_init_exception_op()
616 memset(&EG(call_trampoline_op), 0, sizeof(EG(call_trampoline_op))); in zend_init_call_trampoline_op()
1176 if (!EG(bailout)) { in _zend_bailout()
1391 EG(num_errors)++; in zend_error_zstr_at()
1392 EG(errors) = erealloc(EG(errors), sizeof(zend_error_info*) * EG(num_errors)); in zend_error_zstr_at()
1393 EG(errors)[EG(num_errors)-1] = info; in zend_error_zstr_at()
1669 EG(num_errors) = 0; in zend_begin_record_errors()
1670 EG(errors) = NULL; in zend_begin_record_errors()
1694 efree(EG(errors)); in zend_free_recorded_errors()
1695 EG(errors) = NULL; in zend_free_recorded_errors()
[all …]
H A Dzend_exceptions.c140 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()
216 EG(opline_before_exception) = EG(current_execute_data)->opline; in zend_throw_exception_internal()
217 EG(current_execute_data)->opline = EG(exception_op); in zend_throw_exception_internal()
236 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()
1021 EG(current_execute_data)->opline = EG(exception_op); in zend_throw_unwind_exit()
1028 EG(opline_before_exception) = EG(current_execute_data)->opline; in zend_throw_graceful_exit()
[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.c396 if (!EG(modified_ini_directives)) { in ZEND_FUNCTION()
410 EG(error_reporting) = err; in ZEND_FUNCTION()
1153 zend_stack_push(&EG(user_error_handlers_error_reporting), &EG(user_error_handler_error_reporting)); in ZEND_FUNCTION()
1154 zend_stack_push(&EG(user_error_handlers), &EG(user_error_handler)); in ZEND_FUNCTION()
1157 ZVAL_UNDEF(&EG(user_error_handler)); in ZEND_FUNCTION()
1175 ZVAL_UNDEF(&EG(user_error_handler)); in ZEND_FUNCTION()
1180 ZVAL_UNDEF(&EG(user_error_handler)); in ZEND_FUNCTION()
1183EG(user_error_handler_error_reporting) = zend_stack_int_top(&EG(user_error_handlers_error_reportin… in ZEND_FUNCTION()
1209 zend_stack_push(&EG(user_exception_handlers), &EG(user_exception_handler)); in ZEND_FUNCTION()
1717 call = EG(current_execute_data); in zend_fetch_debug_backtrace()
[all …]
H A Dzend_ini.c104 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 Dzend_generators.c335 EG(exception) = NULL; in zend_generator_dtor_storage()
345 if (EG(exception)) { in zend_generator_dtor_storage()
348 EG(exception) = old_exception; in zend_generator_dtor_storage()
718 if (UNEXPECTED(EG(exception) != NULL)) { in zend_generator_get_next_delegated_value()
779 if (EG(active_fiber)) { in zend_generator_resume()
793 EG(jit_trace_num) = 0; in zend_generator_resume()
818 if (UNEXPECTED(EG(exception))) { in zend_generator_resume()
824 EG(opline_before_exception)--; in zend_generator_resume()
865 if (UNEXPECTED(EG(exception) != NULL)) { in zend_generator_resume()
868 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()
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 Dzend_constants.c104 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()
132 zend_hash_destroy(EG(zend_constants)); in zend_shutdown_constants()
133 free(EG(zend_constants)); in zend_shutdown_constants()
199 if (!EG(current_execute_data)) { in zend_get_halt_offset_constant()
212 c = zend_hash_find_ptr(EG(zend_constants), haltname); in zend_get_halt_offset_constant()
266 zend_constant *c = zend_hash_str_find_ptr(EG(zend_constants), name, name_len); in zend_get_constant_str_impl()
290 zend_constant *c = zend_hash_find_ptr(EG(zend_constants), name); in zend_get_constant_impl()
340 ce = zend_get_called_scope(EG(current_execute_data)); in zend_get_class_constant_ex()
515 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.c292 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()
773 scope = EG(fake_scope); in verify_readonly_initialization_access()
1094 return &EG(error_zval); in zend_std_get_property_ptr_ptr()
1098 return &EG(error_zval); in zend_std_get_property_ptr_ptr()
1112 retval = &EG(error_zval); in zend_std_get_property_ptr_ptr()
1481 if (EG(exception)) { in zend_std_get_static_method()
1528 scope = EG(fake_scope); in zend_std_get_static_property_with_info()
1617 scope = EG(fake_scope); in zend_std_get_constructor()
[all …]
/PHP-8.2/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.2/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.2/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.2/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_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 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_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()
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()
315 if (EG(current_execute_data) == gen->execute_data) { in phpdbg_open_generator_frame()
324 EG(current_execute_data) = gen->execute_data; in phpdbg_open_generator_frame()
330 s = phpdbg_compile_stackframe(EG(current_execute_data)); in phpdbg_open_generator_frame()
/PHP-8.2/ext/opcache/
H A DZendAccelerator.c1862 EG(num_errors) = 0; in opcache_compile_file()
1863 EG(errors) = NULL; in opcache_compile_file()
2392 zend_persist_warnings_calc(EG(num_errors), EG(errors)); in zend_accel_inheritance_cache_add()
2450 entry->warnings = zend_persist_warnings(EG(num_errors), EG(errors)); in zend_accel_inheritance_cache_add()
2454 EG(num_errors) = 0; in zend_accel_inheritance_cache_add()
2455 EG(errors) = NULL; in zend_accel_inheritance_cache_add()
3982 zend_hash_update_ptr(&errors, key, EG(errors)[EG(num_errors)-1]);
4014 EG(class_table), key, zv, EG(persistent_classes_count)) {
4326 EG(persistent_constants_count) = EG(zend_constants)->nNumUsed;
4329 EG(persistent_functions_count) = EG(function_table)->nNumUsed;
[all …]
/PHP-8.2/ext/sodium/
H A Dlibsodium.c199 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 …]

Completed in 124 milliseconds

12345678