Home
last modified time | relevance | path

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

123456789

/php-src/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.c143 EG(symtable_cache_ptr) = EG(symtable_cache); in init_executor()
187 EG(ht_iterators) = EG(ht_iterators_slots); in init_executor()
188 memset(EG(ht_iterators), 0, sizeof(EG(ht_iterators_slots))); in init_executor()
190 EG(persistent_constants_count) = EG(zend_constants)->nNumUsed; in init_executor()
191 EG(persistent_functions_count) = EG(function_table)->nNumUsed; in init_executor()
192 EG(persistent_classes_count) = EG(class_table)->nNumUsed; in init_executor()
194 EG(get_gc_buffer).start = EG(get_gc_buffer).end = EG(get_gc_buffer).cur = NULL; in init_executor()
207 EG(active) = 1; in init_executor()
461 while (EG(symtable_cache_ptr) > EG(symtable_cache)) { in shutdown_executor()
478 if (EG(ht_iterators) != EG(ht_iterators_slots)) { in shutdown_executor()
[all …]
H A Dzend_max_execution_timer.c50 if (EG(pid) == pid) { in zend_max_execution_timer_init()
56 sev.sigev_value.sival_ptr = &EG(max_execution_timer_timer); in zend_max_execution_timer_init()
65 if (timer_create(ZEND_MAX_EXECUTION_TIMERS_CLOCK, &sev, &EG(max_execution_timer_timer)) != 0) { in zend_max_execution_timer_init()
69 EG(pid) = pid; in zend_max_execution_timer_init()
72 …fprintf(stderr, "Timer %#jx created on thread %d\n", (uintmax_t) EG(max_execution_timer_timer), se… in zend_max_execution_timer_init()
75 sigaction(sev.sigev_signo, NULL, &EG(oldact)); in zend_max_execution_timer_init()
82 if (!EG(pid)) { in zend_max_execution_timer_settime()
86 timer_t timer = EG(max_execution_timer_timer); in zend_max_execution_timer_settime()
110 if (EG(pid) != getpid()) { in zend_max_execution_timer_shutdown()
114 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.c129 state->bailout = EG(bailout); in zend_fiber_capture_vm_state()
573 EG(vm_stack) = NULL; in zend_fiber_execute()
577 EG(vm_stack) = stack; in zend_fiber_execute()
591 EG(jit_trace_num) = 0; in zend_fiber_execute()
607 if (EG(exception)) { in zend_fiber_execute()
609 || !(zend_is_graceful_exit(EG(exception)) || zend_is_unwind_exit(EG(exception))) in zend_fiber_execute()
661 EG(active_fiber) = NULL; in zend_fiber_switch_to()
677 EG(active_fiber) = fiber; in zend_fiber_resume()
716 EG(exception) = NULL; in zend_fiber_object_destroy()
730 if (!exception && EG(current_execute_data) && EG(current_execute_data)->func in zend_fiber_object_destroy()
[all …]
H A Dzend.c665 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()
1219 if (!EG(bailout)) { in _zend_bailout()
1425 EG(num_errors)++; in zend_error_zstr_at()
1426 EG(errors) = erealloc(EG(errors), sizeof(zend_error_info*) * EG(num_errors)); in zend_error_zstr_at()
1427 EG(errors)[EG(num_errors)-1] = info; in zend_error_zstr_at()
1707 EG(num_errors) = 0; in zend_begin_record_errors()
1708 EG(errors) = NULL; in zend_begin_record_errors()
1732 efree(EG(errors)); in zend_free_recorded_errors()
1733 EG(errors) = NULL; in zend_free_recorded_errors()
[all …]
H A Dzend_exceptions.c141 zend_exception_set_previous(EG(exception), EG(prev_exception)); in zend_exception_save()
144 EG(prev_exception) = EG(exception); in zend_exception_save()
154 zend_exception_set_previous(EG(exception), EG(prev_exception)); in zend_exception_restore()
156 EG(exception) = EG(prev_exception); in zend_exception_restore()
227 EG(opline_before_exception) = EG(current_execute_data)->opline; in zend_throw_exception_internal()
228 EG(current_execute_data)->opline = EG(exception_op); in zend_throw_exception_internal()
247 EG(current_execute_data)->opline = EG(opline_before_exception); in zend_clear_exception()
1018 EG(opline_before_exception) = EG(current_execute_data)->opline; in zend_throw_unwind_exit()
1019 EG(current_execute_data)->opline = EG(exception_op); in zend_throw_unwind_exit()
1026 EG(opline_before_exception) = EG(current_execute_data)->opline; in zend_throw_graceful_exit()
[all …]
H A Dzend_objects.c109 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 Dzend_builtin_functions.c410 if (!EG(modified_ini_directives)) { in ZEND_FUNCTION()
424 EG(error_reporting) = err; in ZEND_FUNCTION()
565 if (UNEXPECTED(EG(exception))) { in ZEND_FUNCTION()
608 if (UNEXPECTED(EG(exception))) { in ZEND_FUNCTION()
1227 zend_stack_push(&EG(user_error_handlers_error_reporting), &EG(user_error_handler_error_reporting)); in ZEND_FUNCTION()
1228 zend_stack_push(&EG(user_error_handlers), &EG(user_error_handler)); in ZEND_FUNCTION()
1283 zend_stack_push(&EG(user_exception_handlers), &EG(user_exception_handler)); in ZEND_FUNCTION()
1791 call = EG(current_execute_data); in zend_fetch_debug_backtrace()
1796 if (EG(filename_override)) { in zend_fetch_debug_backtrace()
1800 EG(filename_override) = NULL; 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()
287 ini_directives = EG(ini_directives); in zend_unregister_ini_entries_ex()
379 if (!EG(modified_ini_directives)) { in zend_alter_ini_entry_ex()
[all …]
H A Dzend_vm_execute.skl20 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 Dzend_call_stack.c79 EG(call_stack) = (zend_call_stack){0}; in zend_call_stack_init()
82 switch (EG(max_allowed_stack_size)) { in zend_call_stack_init()
84 void *base = EG(call_stack).base; in zend_call_stack_init()
85 size_t size = EG(call_stack).max_size; in zend_call_stack_init()
92 EG(stack_base) = base; in zend_call_stack_init()
93 EG(stack_limit) = zend_call_stack_limit(base, size, EG(reserved_stack_size)); in zend_call_stack_init()
97 EG(stack_base) = (void*)0; in zend_call_stack_init()
98 EG(stack_limit) = (void*)0; in zend_call_stack_init()
103 void *base = EG(call_stack).base; in zend_call_stack_init()
107 EG(stack_base) = base; in zend_call_stack_init()
[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()
657 if (UNEXPECTED(EG(exception) != NULL)) { in zend_generator_get_next_delegated_value()
678 if (UNEXPECTED(EG(exception) != NULL)) { in zend_generator_get_next_delegated_value()
729 EG(jit_trace_num) = 0; in zend_generator_resume()
786 EG(jit_trace_num) = original_jit_trace_num; in zend_generator_resume()
792 if (UNEXPECTED(EG(exception) != NULL)) { in zend_generator_resume()
795 if (!EG(current_execute_data)) { in zend_generator_resume()
[all …]
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()
114 true_const = zend_hash_str_find_ptr(EG(zend_constants), "TRUE", sizeof("TRUE")-1); in zend_register_standard_constants()
182 if (!EG(current_execute_data)) { in zend_get_halt_offset_constant()
195 c = zend_hash_find_ptr(EG(zend_constants), haltname); in zend_get_halt_offset_constant()
249 zend_constant *c = zend_hash_str_find_ptr(EG(zend_constants), name, name_len); in zend_get_constant_str_impl()
273 zend_constant *c = zend_hash_find_ptr(EG(zend_constants), name); in zend_get_constant_ptr()
323 ce = zend_get_called_scope(EG(current_execute_data)); in zend_get_class_constant_ex()
358 if (EG(exception)) { in zend_get_class_constant_ex()
506 c = zend_hash_str_find_ptr(EG(zend_constants), lcname, lcname_len); in zend_get_constant_ex()
[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()
784 scope = EG(fake_scope); in verify_readonly_initialization_access()
1150 return &EG(error_zval); in zend_std_get_property_ptr_ptr()
1154 return &EG(error_zval); in zend_std_get_property_ptr_ptr()
1166 retval = &EG(error_zval); in zend_std_get_property_ptr_ptr()
1539 if (EG(exception)) { in zend_std_get_static_method()
1586 scope = EG(fake_scope); in zend_std_get_static_property_with_info()
1675 scope = EG(fake_scope); in zend_std_get_constructor()
[all …]
/php-src/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()
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-src/main/
H A Dmain_arginfo.h43 …REGISTER_LONG_CONSTANT("PHP_WINDOWS_VERSION_MAJOR", EG(windows_version_info).dwMajorVersion, CONST… in register_main_symbols()
46 …REGISTER_LONG_CONSTANT("PHP_WINDOWS_VERSION_MINOR", EG(windows_version_info).dwMinorVersion, CONST… in register_main_symbols()
49 …REGISTER_LONG_CONSTANT("PHP_WINDOWS_VERSION_BUILD", EG(windows_version_info).dwBuildNumber, CONST_… in register_main_symbols()
52 …REGISTER_LONG_CONSTANT("PHP_WINDOWS_VERSION_PLATFORM", EG(windows_version_info).dwPlatformId, CONS… in register_main_symbols()
55 …REGISTER_LONG_CONSTANT("PHP_WINDOWS_VERSION_SP_MAJOR", EG(windows_version_info).wServicePackMajor,… in register_main_symbols()
58 …REGISTER_LONG_CONSTANT("PHP_WINDOWS_VERSION_SP_MINOR", EG(windows_version_info).wServicePackMinor,… in register_main_symbols()
61 …REGISTER_LONG_CONSTANT("PHP_WINDOWS_VERSION_SUITEMASK", EG(windows_version_info).wSuiteMask, CONST… in register_main_symbols()
64 …REGISTER_LONG_CONSTANT("PHP_WINDOWS_VERSION_PRODUCTTYPE", EG(windows_version_info).wProductType, C… in register_main_symbols()
/php-src/ext/opcache/jit/
H A Dzend_jit_helpers.c23 ZEND_ASSERT(EG(exception)); in undef_result_after_exception()
414 if (EG(exception)) { in zend_jit_fetch_dim_r_helper()
446 if (EG(exception)) { in zend_jit_fetch_dim_r_helper()
474 if (EG(exception)) { in zend_jit_fetch_dim_r_helper()
556 if (EG(exception)) { in zend_jit_fetch_dim_is_helper()
616 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-src/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(null, 2); //causes constant resolving, which runs autoload, all with EG(fake_sc…
/php-src/sapi/phpdbg/
H A Dphpdbg_prompt.c521 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)) { 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 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()
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 DZendAccelerator.c1850 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()
3962 zend_hash_update_ptr(&errors, key, EG(errors)[EG(num_errors)-1]);
3994 EG(class_table), key, zv, EG(persistent_classes_count)) {
4304 EG(persistent_constants_count) = EG(zend_constants)->nNumUsed;
4307 EG(persistent_functions_count) = EG(function_table)->nNumUsed;
[all …]
/php-src/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 230 milliseconds

123456789