Home
last modified time | relevance | path

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

1234567

/PHP-7.3/Zend/
H A Dzend_execute_API.c133 EG(symtable_cache_ptr) = EG(symtable_cache) - 1; in init_executor()
177 EG(ht_iterators) = EG(ht_iterators_slots); in init_executor()
178 memset(EG(ht_iterators), 0, sizeof(EG(ht_iterators_slots))); in init_executor()
182 EG(persistent_constants_count) = EG(zend_constants)->nNumUsed; in init_executor()
183 EG(persistent_functions_count) = EG(function_table)->nNumUsed; in init_executor()
184 EG(persistent_classes_count) = EG(class_table)->nNumUsed; in init_executor()
186 EG(active) = 1; in init_executor()
272 EG(active) = 0; in shutdown_executor()
352 while (EG(symtable_cache_ptr)>=EG(symtable_cache)) { in shutdown_executor()
369 if (EG(ht_iterators) != EG(ht_iterators_slots)) { in shutdown_executor()
[all …]
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_objects_API.c44 EG(flags) |= EG_FLAGS_OBJECT_STORE_NO_REUSE; in zend_objects_store_call_destructors()
138 …if (EG(objects_store).free_list_head != -1 && EXPECTED(!(EG(flags) & EG_FLAGS_OBJECT_STORE_NO_REUS… in zend_objects_store_put()
139 handle = EG(objects_store).free_list_head; in zend_objects_store_put()
140EG(objects_store).free_list_head = GET_OBJ_BUCKET_NUMBER(EG(objects_store).object_buckets[handle]); in zend_objects_store_put()
142 if (EG(objects_store).top == EG(objects_store).size) { in zend_objects_store_put()
143 uint32_t new_size = 2 * EG(objects_store).size; in zend_objects_store_put()
144EG(objects_store).object_buckets = (zend_object **) erealloc(EG(objects_store).object_buckets, new… in zend_objects_store_put()
146 EG(objects_store).size = new_size; in zend_objects_store_put()
148 handle = EG(objects_store).top++; in zend_objects_store_put()
151 EG(objects_store).object_buckets[handle] = object; in zend_objects_store_put()
[all …]
H A Dzend.c543 memset(EG(exception_op), 0, sizeof(EG(exception_op))); in zend_init_exception_op()
555 memset(&EG(call_trampoline_op), 0, sizeof(EG(call_trampoline_op))); in zend_init_call_trampoline_op()
1019 if (EG(exception)) { in zenderror()
1032 if (!EG(bailout)) { in BEGIN_EXTERN_C()
1191 if (EG(exception)) { in zend_error()
1212 EG(exception) = NULL; in zend_error()
1344 EG(fake_scope) = NULL; in zend_error()
1524 if (EG(exception)) { in zend_try_exception_handler()
1530 EG(exception) = NULL; in zend_try_exception_handler()
1536 if (EG(exception)) { in zend_try_exception_handler()
[all …]
H A Dzend_ini.c108 EG(modified_ini_directives) = NULL; in zend_ini_startup()
109 EG(error_reporting_ini_entry) = NULL; in zend_ini_startup()
117 zend_ini_dtor(EG(ini_directives)); in zend_ini_shutdown()
139 if (EG(modified_ini_directives)) { in zend_ini_deactivate()
143 EG(modified_ini_directives) = NULL; in zend_ini_deactivate()
171 EG(modified_ini_directives) = NULL; in zend_copy_ini_directives()
172 EG(error_reporting_ini_entry) = NULL; in zend_copy_ini_directives()
230 if (directives != EG(ini_directives)) { in zend_register_ini_entries()
231 directives = EG(ini_directives); in zend_register_ini_entries()
357 if (!EG(modified_ini_directives)) { in zend_alter_ini_entry_ex()
[all …]
H A Dzend_objects.c89 if (EG(current_execute_data)) { in zend_objects_destroy_object()
108 if (EG(current_execute_data)) { in zend_objects_destroy_object()
134 if (EG(exception)) { in zend_objects_destroy_object()
135 if (EG(exception) == object) { in zend_objects_destroy_object()
138 old_exception = EG(exception); in zend_objects_destroy_object()
139 EG(exception) = NULL; in zend_objects_destroy_object()
142 orig_fake_scope = EG(fake_scope); in zend_objects_destroy_object()
143 EG(fake_scope) = NULL; in zend_objects_destroy_object()
163 if (EG(exception)) { in zend_objects_destroy_object()
166 EG(exception) = old_exception; in zend_objects_destroy_object()
[all …]
H A Dzend_exceptions.c119 zend_exception_set_previous(EG(exception), EG(prev_exception)); in zend_exception_save()
121 if (EG(exception)) { in zend_exception_save()
122 EG(prev_exception) = EG(exception); in zend_exception_save()
124 EG(exception) = NULL; in zend_exception_save()
131 if (EG(exception)) { in zend_exception_restore()
132 zend_exception_set_previous(EG(exception), EG(prev_exception)); in zend_exception_restore()
134 EG(exception) = EG(prev_exception); in zend_exception_restore()
165 if(EG(exception)) { in zend_throw_exception_internal()
181 EG(opline_before_exception) = EG(current_execute_data)->opline; in zend_throw_exception_internal()
182 EG(current_execute_data)->opline = EG(exception_op); in zend_throw_exception_internal()
[all …]
H A Dzend_vm_execute.skl28 if (EG(exception) != NULL) {
33 …(zend_function*)op_array, 0, zend_get_called_scope(EG(current_execute_data)), zend_get_this_object…
34 if (EG(current_execute_data)) {
37 execute_data->symbol_table = &EG(symbol_table);
39 EX(prev_execute_data) = EG(current_execute_data);
H A Dzend_builtin_functions.c544 q = &EG(uninitialized_zval); in ZEND_FUNCTION()
560 q = &EG(uninitialized_zval); in ZEND_FUNCTION()
676 if (!EG(each_deprecation_thrown)) { in ZEND_FUNCTION()
678 EG(each_deprecation_thrown) = 1; in ZEND_FUNCTION()
750 if (!EG(modified_ini_directives)) { in ZEND_FUNCTION()
1668 zend_stack_push(&EG(user_error_handlers_error_reporting), &EG(user_error_handler_error_reporting)); in ZEND_FUNCTION()
1669 zend_stack_push(&EG(user_error_handlers), &EG(user_error_handler)); in ZEND_FUNCTION()
1672 ZVAL_UNDEF(&EG(user_error_handler)); in ZEND_FUNCTION()
1693 ZVAL_UNDEF(&EG(user_error_handler)); in ZEND_FUNCTION()
1701EG(user_error_handler_error_reporting) = zend_stack_int_top(&EG(user_error_handlers_error_reportin… in ZEND_FUNCTION()
[all …]
H A Dzend_execute.h164 …K_GLOBAL ZEND_ASSERT(EG(vm_stack_top) > (zval *) EG(vm_stack) && EG(vm_stack_end) > (zval *) EG(vm…
190 zend_execute_data *call = (zend_execute_data*)EG(vm_stack_top); in zend_vm_stack_push_call_frame_ex()
194 if (UNEXPECTED(used_stack > (size_t)(((char*)EG(vm_stack_end)) - (char*)call))) { in zend_vm_stack_push_call_frame_ex()
200 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()
H A Dzend_object_handlers.c189 EG(fake_scope) = NULL; in zend_std_call_getter()
225 EG(fake_scope) = NULL; in zend_std_call_setter()
263 EG(fake_scope) = NULL; in zend_std_call_unsetter()
299 EG(fake_scope) = NULL; in zend_std_call_issetter()
334 if (EG(fake_scope)) { in zend_verify_property_access()
335 scope = EG(fake_scope); in zend_verify_property_access()
341 if (EG(fake_scope)) { in zend_verify_property_access()
407 if (EG(fake_scope)) { in zend_get_property_offset()
408 scope = EG(fake_scope); in zend_get_property_offset()
486 if (EG(fake_scope)) { in zend_get_property_info()
[all …]
H A Dzend_execute.c190 EG(vm_stack)->top++; in zend_vm_stack_init()
191 EG(vm_stack_top) = EG(vm_stack)->top; in zend_vm_stack_init()
192 EG(vm_stack_end) = EG(vm_stack)->end; in zend_vm_stack_init()
201 EG(vm_stack_top) = EG(vm_stack)->top; in zend_vm_stack_init_ex()
202 EG(vm_stack_end) = EG(vm_stack)->end; in zend_vm_stack_init_ex()
221 stack = EG(vm_stack); in zend_vm_stack_extend()
225 EG(vm_stack_page_size) : ZEND_VM_STACK_PAGE_ALIGNED_SIZE(size, EG(vm_stack_page_size)), in zend_vm_stack_extend()
1599 ht = &EG(symbol_table); in zend_get_target_symbol_table()
2344 if (EG(symtable_cache_ptr) >= EG(symtable_cache_limit)) { in zend_clean_and_cache_symbol_table()
2691 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_list.c37 index = zend_hash_next_free_element(&EG(regular_list)); in zend_list_insert()
42 return zend_hash_index_add_new(&EG(regular_list), index, &zv); in zend_list_insert()
48 return zend_hash_index_del(&EG(regular_list), res->handle); in zend_list_delete()
57 return zend_hash_index_del(&EG(regular_list), res->handle); in zend_list_free()
211 zend_hash_init(&EG(regular_list), 8, NULL, list_entry_destructor, 0); in zend_init_rsrc_list()
218 zend_hash_init_ex(&EG(persistent_list), 8, NULL, plist_entry_destructor, 1, 0); in zend_init_rsrc_plist()
261 …zend_hash_apply_with_argument(&EG(persistent_list), clean_module_resource, (void *) &(ld->resource… in zend_clean_module_rsrc_dtors_cb()
347 zv = zend_hash_update(&EG(persistent_list), key, &tmp); in zend_register_persistent_resource_ex()
H A Dzend_constants.c101 EG(zend_constants) = (HashTable *) malloc(sizeof(HashTable)); in zend_startup_constants()
103 zend_hash_init(EG(zend_constants), 128, NULL, ZEND_CONSTANT_DTOR, 1); in zend_startup_constants()
144 zend_hash_destroy(EG(zend_constants)); in zend_shutdown_constants()
145 free(EG(zend_constants)); in zend_shutdown_constants()
212 if (!EG(current_execute_data)) { in zend_get_special_constant()
225 c = zend_hash_find_ptr(EG(zend_constants), haltname); in zend_get_special_constant()
251 if ((c = zend_hash_str_find_ptr(EG(zend_constants), name, name_len)) == NULL) { in zend_get_constant_str_impl()
279 zv = zend_hash_find(EG(zend_constants), name); in zend_get_constant_impl()
283 zv = zend_hash_str_find(EG(zend_constants), lcname, ZSTR_LEN(name)); in zend_get_constant_impl()
363 ce = zend_get_called_scope(EG(current_execute_data)); in zend_get_constant_ex()
[all …]
H A Dzend_objects_API.h39 SET_OBJ_BUCKET_NUMBER(EG(objects_store).object_buckets[(h)], EG(objects_store).free_list_head); \
40 EG(objects_store).free_list_head = (h); \
H A Dzend_globals_macros.h42 # define EG(v) ZEND_TSRMG(executor_globals_id, zend_executor_globals *, v) macro
44 # define EG(v) (executor_globals.v) macro
/PHP-7.3/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-7.3/sapi/phpdbg/
H A Dphpdbg_prompt.c532 if (EG(exception)) { in phpdbg_compile_stdin()
628 if (EG(exception)) { in phpdbg_compile()
775 EG(exception) = NULL; in phpdbg_handle_exception()
782 if (EG(exception)) { in phpdbg_handle_exception()
783 EG(exception) = NULL; in phpdbg_handle_exception()
803 EG(exit_status) = 255; in phpdbg_handle_exception()
972 if (EG(exception)) { in PHPDBG_COMMAND()
1035 if (EG(exception)) { in PHPDBG_COMMAND()
1036 ex = EG(exception); in PHPDBG_COMMAND()
1059 EG(exit_status) = 0; in PHPDBG_COMMAND()
[all …]
H A Dphpdbg_print.c44 if (PHPDBG_G(in_execution) && EG(current_execute_data)) { in PHPDBG_PRINT()
45 phpdbg_print_opline(phpdbg_user_execute_data(EG(current_execute_data)), 1); in PHPDBG_PRINT()
126 if (PHPDBG_G(in_execution) && EG(current_execute_data)) { in PHPDBG_PRINT()
213 HashTable *func_table = EG(function_table); in PHPDBG_PRINT()
231 } else if (!EG(function_table)) { in PHPDBG_PRINT()
235 func_table = EG(function_table); in PHPDBG_PRINT()
272 ZEND_HASH_FOREACH_STR_KEY_PTR(EG(class_table), rt_name, func) { in phpdbg_print_opcodes_function()
308 ZEND_HASH_FOREACH_STR_KEY_PTR(EG(class_table), rt_name, ce) { in phpdbg_print_opcodes_method()
366 ZEND_HASH_FOREACH_STR_KEY_PTR(EG(class_table), rt_name, ce) { in phpdbg_print_opcodes_class()
392 ZEND_HASH_FOREACH_STR_KEY_PTR(EG(function_table), name, func) { in phpdbg_print_opcodes()
[all …]
H A Dphpdbg_info.c67 …phpdbg_notice("includedfilecount", "num=\"%d\"", "Included files: %d", zend_hash_num_elements(&EG(… in PHPDBG_INFO()
74 ZEND_HASH_FOREACH_STR_KEY(&EG(included_files), fname) { in PHPDBG_INFO()
105 if (EG(zend_constants)) { in PHPDBG_INFO()
107 ZEND_HASH_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()
309 …zend_bool in_executor = PHPDBG_G(in_execution) && EG(current_execute_data) && EG(current_execute_d… in PHPDBG_INFO()
311 zend_op_array *ops = in_executor ? &EG(current_execute_data)->func->op_array : PHPDBG_G(ops); in PHPDBG_INFO()
392 ZEND_HASH_FOREACH_PTR(EG(class_table), ce) { in PHPDBG_INFO()
[all …]
H A Dphpdbg_frame.c118 EG(current_execute_data) = PHPDBG_FRAME(execute_data); in phpdbg_restore_frame()
123 …zend_execute_data *execute_data = PHPDBG_FRAME(num) ? PHPDBG_FRAME(execute_data) : EG(current_exec… in phpdbg_switch_frame()
157 PHPDBG_FRAME(execute_data) = EG(current_execute_data); in phpdbg_switch_frame()
158 EG(current_execute_data) = execute_data; in phpdbg_switch_frame()
162 zend_string *s = phpdbg_compile_stackframe(EG(current_execute_data)); in phpdbg_switch_frame()
326 if (EG(current_execute_data) == gen->execute_data) { in phpdbg_open_generator_frame()
335 EG(current_execute_data) = gen->execute_data; in phpdbg_open_generator_frame()
341 s = phpdbg_compile_stackframe(EG(current_execute_data)); in phpdbg_open_generator_frame()
H A Dphpdbg_webdata_transfer.c46 zend_hash_copy(Z_ARRVAL(zv[1]), &EG(symbol_table), NULL); in phpdbg_webdata_compress()
125 ZEND_HASH_FOREACH_PTR(EG(ini_directives), ini_entry) { in phpdbg_webdata_compress()
146 if (EG(modified_ini_directives)) { in phpdbg_webdata_compress()
150 ZEND_HASH_FOREACH_PTR(EG(ini_directives), ini_entry) { in phpdbg_webdata_compress()
/PHP-7.3/ext/sodium/
H A Dlibsodium.c659 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
685 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
710 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
739 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
760 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
795 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
841 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
885 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
924 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
963 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
[all …]
/PHP-7.3/ext/opcache/
H A DZendAccelerator.c885 er = EG(error_reporting); in zend_get_stream_timestamp()
886 EG(error_reporting) = 0; in zend_get_stream_timestamp()
892 EG(error_reporting) = er; in zend_get_stream_timestamp()
955 !EG(current_execute_data) && in zend_get_file_handle_timestamp()
1019 er = EG(error_reporting); in zend_get_file_handle_timestamp()
1020 EG(error_reporting) = 0; in zend_get_file_handle_timestamp()
1026 EG(error_reporting) = er; in zend_get_file_handle_timestamp()
1872 if (!EG(current_execute_data) || !EG(current_execute_data)->opline || in file_cache_compile_file()
2202 if (!EG(current_execute_data) || !EG(current_execute_data)->opline || in persistent_compile_file()
2297 ZCG(cache_opline) = EG(current_execute_data) ? EG(current_execute_data)->opline : NULL; in persistent_zend_resolve_path()
[all …]
/PHP-7.3/main/
H A Dmain.c293 EG(precision) = i; in PHP_INI_MH()
1104 if (EG(current_execute_data)) { in php_verror()
1242 if (!EG(exception)) { in php_error_cb()
1394 EG(exit_status) = 255; in php_error_cb()
2350 EG(current_module) = module; in php_module_startup()
2352 EG(current_module) = NULL; in php_module_startup()
2555 EG(exit_status) = 0; in php_execute_script()
2641 if (EG(exception)) { in php_execute_script()
2669 EG(exit_status) = 0; in php_execute_simple_script()
2695 return EG(exit_status); in php_execute_simple_script()
[all …]

Completed in 103 milliseconds

1234567