Home
last modified time | relevance | path

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

1234567

/PHP-7.2/Zend/
H A Dzend_execute_API.c135 EG(symtable_cache_ptr) = EG(symtable_cache) - 1; in init_executor()
155 EG(ticks_count) = 0; in init_executor()
170 EG(timed_out) = 0; in init_executor()
179 EG(ht_iterators) = EG(ht_iterators_slots); in init_executor()
180 memset(EG(ht_iterators), 0, sizeof(EG(ht_iterators_slots))); in init_executor()
184 EG(active) = 1; in init_executor()
270 EG(active) = 0; in shutdown_executor()
366 while (EG(symtable_cache_ptr)>=EG(symtable_cache)) { in shutdown_executor()
383 if (EG(ht_iterators) != EG(ht_iterators_slots)) { in shutdown_executor()
668 if (!EG(active)) { in zend_call_function()
[all …]
H A Dzend_float.c30 if (!EG(saved_fpu_cw_ptr)) { in zend_init_fpu()
31 EG(saved_fpu_cw_ptr) = (void*)&EG(saved_fpu_cw); in zend_init_fpu()
33 XPFPA_STORE_CW(EG(saved_fpu_cw_ptr)); in zend_init_fpu()
36 EG(saved_fpu_cw_ptr) = NULL; in zend_init_fpu()
44 if (EG(saved_fpu_cw_ptr)) { in zend_shutdown_fpu()
45 XPFPA_RESTORE_CW(EG(saved_fpu_cw_ptr)); in zend_shutdown_fpu()
48 EG(saved_fpu_cw_ptr) = NULL; in zend_shutdown_fpu()
H A Dzend_objects_API.c46 EG(flags) |= EG_FLAGS_OBJECT_STORE_NO_REUSE; in zend_objects_store_call_destructors()
140 …if (EG(objects_store).free_list_head != -1 && EXPECTED(!(EG(flags) & EG_FLAGS_OBJECT_STORE_NO_REUS… in zend_objects_store_put()
141 handle = EG(objects_store).free_list_head; in zend_objects_store_put()
142EG(objects_store).free_list_head = GET_OBJ_BUCKET_NUMBER(EG(objects_store).object_buckets[handle]); in zend_objects_store_put()
144 if (EG(objects_store).top == EG(objects_store).size) { in zend_objects_store_put()
145 uint32_t new_size = 2 * EG(objects_store).size; in zend_objects_store_put()
148 EG(objects_store).size = new_size; in zend_objects_store_put()
150 handle = EG(objects_store).top++; in zend_objects_store_put()
157 …SET_OBJ_BUCKET_NUMBER(EG(objects_store).object_buckets[handle], EG(objects_store).free_list_head);…
158 EG(objects_store).free_list_head = handle;
[all …]
H A Dzend.c499 memset(EG(exception_op), 0, sizeof(EG(exception_op))); in zend_init_exception_op()
520 memset(&EG(call_trampoline_op), 0, sizeof(EG(call_trampoline_op))); in zend_init_call_trampoline_op()
948 if (EG(exception)) { in zenderror()
961 if (!EG(bailout)) { in BEGIN_EXTERN_C()
1119 if (EG(exception)) { in zend_error()
1140 EG(exception) = NULL; in zend_error()
1272 EG(fake_scope) = NULL; in zend_error()
1454 if (EG(exception)) { in zend_try_exception_handler()
1460 EG(exception) = NULL; in zend_try_exception_handler()
1466 if (EG(exception)) { in zend_try_exception_handler()
[all …]
H A Dzend_ini.c110 EG(modified_ini_directives) = NULL; in zend_ini_startup()
111 EG(error_reporting_ini_entry) = NULL; in zend_ini_startup()
119 zend_ini_dtor(EG(ini_directives)); in zend_ini_shutdown()
141 if (EG(modified_ini_directives)) { in zend_ini_deactivate()
145 EG(modified_ini_directives) = NULL; in zend_ini_deactivate()
173 EG(modified_ini_directives) = NULL; in zend_copy_ini_directives()
174 EG(error_reporting_ini_entry) = NULL; in zend_copy_ini_directives()
227 if (directives != EG(ini_directives)) { in zend_register_ini_entries()
228 directives = EG(ini_directives); in zend_register_ini_entries()
354 if (!EG(modified_ini_directives)) { in zend_alter_ini_entry_ex()
[all …]
H A Dzend_exceptions.c114 zend_exception_set_previous(EG(exception), EG(prev_exception)); in zend_exception_save()
116 if (EG(exception)) { in zend_exception_save()
117 EG(prev_exception) = EG(exception); in zend_exception_save()
119 EG(exception) = NULL; in zend_exception_save()
126 if (EG(exception)) { in zend_exception_restore()
127 zend_exception_set_previous(EG(exception), EG(prev_exception)); in zend_exception_restore()
129 EG(exception) = EG(prev_exception); in zend_exception_restore()
160 if(EG(exception)) { in zend_throw_exception_internal()
176 EG(opline_before_exception) = EG(current_execute_data)->opline; in zend_throw_exception_internal()
177 EG(current_execute_data)->opline = EG(exception_op); in zend_throw_exception_internal()
[all …]
H A Dzend_objects.c91 if (EG(current_execute_data)) { in zend_objects_destroy_object()
110 if (EG(current_execute_data)) { in zend_objects_destroy_object()
137 if (EG(exception)) { in zend_objects_destroy_object()
138 if (EG(exception) == object) { in zend_objects_destroy_object()
141 old_exception = EG(exception); in zend_objects_destroy_object()
142 EG(exception) = NULL; in zend_objects_destroy_object()
145 orig_fake_scope = EG(fake_scope); in zend_objects_destroy_object()
146 EG(fake_scope) = NULL; in zend_objects_destroy_object()
149 if (EG(exception)) { in zend_objects_destroy_object()
152 EG(exception) = old_exception; in zend_objects_destroy_object()
[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.c491 q = &EG(uninitialized_zval); in ZEND_FUNCTION()
507 q = &EG(uninitialized_zval); in ZEND_FUNCTION()
621 if (!EG(each_deprecation_thrown)) { in ZEND_FUNCTION()
623 EG(each_deprecation_thrown) = 1; in ZEND_FUNCTION()
693 EG(error_reporting_ini_entry) = p; in ZEND_FUNCTION()
699 if (!EG(modified_ini_directives)) { in ZEND_FUNCTION()
1616 …zend_stack_push(&EG(user_error_handlers_error_reporting), &EG(user_error_handler_error_reporting)); in ZEND_FUNCTION()
1617 zend_stack_push(&EG(user_error_handlers), &EG(user_error_handler)); in ZEND_FUNCTION()
1621 ZVAL_UNDEF(&EG(user_error_handler)); in ZEND_FUNCTION()
1650EG(user_error_handler_error_reporting) = zend_stack_int_top(&EG(user_error_handlers_error_reportin… in ZEND_FUNCTION()
[all …]
H A Dzend_constants.c93 EG(zend_constants) = (HashTable *) malloc(sizeof(HashTable)); in zend_startup_constants()
95 zend_hash_init(EG(zend_constants), 128, NULL, ZEND_CONSTANT_DTOR, 1); in zend_startup_constants()
136 zend_hash_destroy(EG(zend_constants)); in zend_shutdown_constants()
137 free(EG(zend_constants)); in zend_shutdown_constants()
209 if (!EG(current_execute_data)) { in zend_get_special_constant()
222 c = zend_hash_find_ptr(EG(zend_constants), haltname); in zend_get_special_constant()
269 if ((c = zend_hash_find_ptr(EG(zend_constants), name)) == NULL) { in zend_get_constant()
326 ce = zend_get_called_scope(EG(current_execute_data)); in zend_get_constant_ex()
424 if ((c = zend_hash_find_ptr(EG(zend_constants), Z_STR_P(key))) == NULL) { in zend_quick_get_constant()
426 if ((c = zend_hash_find_ptr(EG(zend_constants), Z_STR_P(key))) == NULL || in zend_quick_get_constant()
[all …]
H A Dzend_execute.h157 …K_GLOBAL ZEND_ASSERT(EG(vm_stack_top) > (zval *) EG(vm_stack) && EG(vm_stack_end) > (zval *) EG(vm…
182 zend_execute_data *call = (zend_execute_data*)EG(vm_stack_top); in zend_vm_stack_push_call_frame_ex()
186 if (UNEXPECTED(used_stack > (size_t)(((char*)EG(vm_stack_end)) - (char*)call))) { in zend_vm_stack_push_call_frame_ex()
192 EG(vm_stack_top) = (zval*)((char*)call + used_stack); in zend_vm_stack_push_call_frame_ex()
267 zend_vm_stack p = EG(vm_stack); in zend_vm_stack_free_call_frame_ex()
270 ZEND_ASSERT(call == (zend_execute_data*)ZEND_VM_STACK_ELEMENTS(EG(vm_stack))); in zend_vm_stack_free_call_frame_ex()
271 EG(vm_stack_top) = prev->top; in zend_vm_stack_free_call_frame_ex()
272 EG(vm_stack_end) = prev->end; in zend_vm_stack_free_call_frame_ex()
273 EG(vm_stack) = prev; in zend_vm_stack_free_call_frame_ex()
276 EG(vm_stack_top) = (zval*)call; in zend_vm_stack_free_call_frame_ex()
H A Dzend_object_handlers.c201 EG(fake_scope) = NULL; in zend_std_call_getter()
219 EG(fake_scope) = NULL; in zend_std_call_setter()
236 EG(fake_scope) = NULL; in zend_std_call_unsetter()
257 EG(fake_scope) = NULL; in zend_std_call_issetter()
282 if (EG(fake_scope)) { in zend_verify_property_access()
283 scope = EG(fake_scope); in zend_verify_property_access()
289 if (EG(fake_scope)) { in zend_verify_property_access()
362 if (EG(fake_scope)) { in zend_get_property_offset()
363 scope = EG(fake_scope); in zend_get_property_offset()
442 if (EG(fake_scope)) { in zend_get_property_info()
[all …]
H A Dzend_list.c39 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 return zend_hash_index_del(&EG(regular_list), res->handle); in zend_list_free()
213 zend_hash_init(&EG(regular_list), 8, NULL, list_entry_destructor, 0); in zend_init_rsrc_list()
220 zend_hash_init_ex(&EG(persistent_list), 8, NULL, plist_entry_destructor, 1, 0); in zend_init_rsrc_plist()
263 …zend_hash_apply_with_argument(&EG(persistent_list), clean_module_resource, (void *) &(ld->resource… in zend_clean_module_rsrc_dtors_cb()
H A Dzend_execute.c181 EG(vm_stack)->top++; in zend_vm_stack_init()
182 EG(vm_stack_top) = EG(vm_stack)->top; in zend_vm_stack_init()
183 EG(vm_stack_end) = EG(vm_stack)->end; in zend_vm_stack_init()
202 stack = EG(vm_stack); in zend_vm_stack_extend()
203 stack->top = EG(vm_stack_top); in zend_vm_stack_extend()
210 EG(vm_stack_end) = stack->end; in zend_vm_stack_extend()
277 return &EG(uninitialized_zval); in _get_zval_cv_lookup_BP_VAR_R()
283 return &EG(uninitialized_zval); in _get_zval_cv_lookup_BP_VAR_UNSET()
1480 ht = &EG(symbol_table); in zend_get_target_symbol_table()
2088 if (EG(symtable_cache_ptr) >= EG(symtable_cache_limit)) { in zend_clean_and_cache_symbol_table()
[all …]
H A Dzend_globals_macros.h44 # define EG(v) ZEND_TSRMG(executor_globals_id, zend_executor_globals *, v) macro
46 # define EG(v) (executor_globals.v) macro
/PHP-7.2/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()
H A Dphpdbg_sigsafe.c18 if (*EG(bailout)) { in ZEND_EXTERN_MODULE_GLOBALS()
19 LONGJMP(*EG(bailout), FAILURE); in ZEND_EXTERN_MODULE_GLOBALS()
/PHP-7.2/ext/opcache/
H A DZendAccelerator.c789 er = EG(error_reporting); in zend_get_stream_timestamp()
790 EG(error_reporting) = 0; in zend_get_stream_timestamp()
796 EG(error_reporting) = er; in zend_get_stream_timestamp()
859 !EG(current_execute_data) && in zend_get_file_handle_timestamp()
923 er = EG(error_reporting); in zend_get_file_handle_timestamp()
924 EG(error_reporting) = 0; in zend_get_file_handle_timestamp()
930 EG(error_reporting) = er; in zend_get_file_handle_timestamp()
1726 if (!EG(current_execute_data) || !EG(current_execute_data)->opline || in file_cache_compile_file()
2056 if (!EG(current_execute_data) || !EG(current_execute_data)->opline || in persistent_compile_file()
2151 ZCG(cache_opline) = EG(current_execute_data) ? EG(current_execute_data)->opline : NULL; in persistent_zend_resolve_path()
[all …]
/PHP-7.2/main/
H A Dmain.c157 EG(precision) = i; in PHP_INI_MH()
940 if (EG(current_execute_data)) { in php_verror()
1099 if (EG(error_handling) == EH_THROW && !EG(exception)) { in php_error_cb()
1230 EG(exit_status) = 255; in php_error_cb()
2324 EG(current_module) = module; in php_module_startup()
2326 EG(current_module) = NULL; in php_module_startup()
2517 EG(exit_status) = 0; in php_execute_script()
2603 if (EG(exception)) { in php_execute_script()
2631 EG(exit_status) = 0; in php_execute_simple_script()
2657 return EG(exit_status); in php_execute_simple_script()
[all …]
/PHP-7.2/ext/sodium/
H A Dlibsodium.c658 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
684 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
709 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
738 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
759 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
794 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
840 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
884 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
923 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
962 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION()
[all …]
/PHP-7.2/ext/spl/
H A Dphp_spl.c71 ce = zend_hash_find_ptr(EG(class_table), lc_name); in spl_find_ce_by_name()
292 if (!EG(exception)) { in spl_autoload()
326 while (pos && *pos && !EG(exception)) { in PHP_FUNCTION()
456 zend_hash_exists(EG(class_table), lc_name)) { in PHP_FUNCTION()
646EG(autoload_func) = zend_hash_str_find_ptr(EG(function_table), "spl_autoload_call", sizeof("spl_au… in PHP_FUNCTION()
648EG(autoload_func) = zend_hash_str_find_ptr(EG(function_table), "spl_autoload", sizeof("spl_autoloa… in PHP_FUNCTION()
710 EG(autoload_func) = NULL; in PHP_FUNCTION()
729 if (EG(autoload_func) == spl_func_ptr) { in PHP_FUNCTION()
731 EG(autoload_func) = NULL; in PHP_FUNCTION()
750 if (!EG(autoload_func)) { in PHP_FUNCTION()
[all …]

Completed in 119 milliseconds

1234567