/PHP-7.4/Zend/ |
H A D | zend_execute_API.c | 135 EG(symtable_cache_ptr) = EG(symtable_cache); in init_executor() 180 EG(ht_iterators) = EG(ht_iterators_slots); in init_executor() 181 memset(EG(ht_iterators), 0, sizeof(EG(ht_iterators_slots))); in init_executor() 185 EG(persistent_constants_count) = EG(zend_constants)->nNumUsed; in init_executor() 186 EG(persistent_functions_count) = EG(function_table)->nNumUsed; in init_executor() 187 EG(persistent_classes_count) = EG(class_table)->nNumUsed; in init_executor() 191 EG(active) = 1; in init_executor() 275 EG(active) = 0; in shutdown_executor() 399 while (EG(symtable_cache_ptr) > EG(symtable_cache)) { in shutdown_executor() 416 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() 106 zend_ini_dtor(EG(ini_directives)); in zend_ini_shutdown() 128 if (EG(modified_ini_directives)) { in zend_ini_deactivate() 136 EG(modified_ini_directives) = NULL; in zend_ini_deactivate() 164 EG(modified_ini_directives) = NULL; in zend_copy_ini_directives() 165 EG(error_reporting_ini_entry) = NULL; in zend_copy_ini_directives() 223 if (directives != EG(ini_directives)) { in zend_register_ini_entries() 224 directives = EG(ini_directives); in zend_register_ini_entries() 344 if (!EG(modified_ini_directives)) { in zend_alter_ini_entry_ex() [all …]
|
H A D | zend.c | 553 memset(EG(exception_op), 0, sizeof(EG(exception_op))); in zend_init_exception_op() 565 memset(&EG(call_trampoline_op), 0, sizeof(EG(call_trampoline_op))); in zend_init_call_trampoline_op() 1110 if (EG(exception)) { in zenderror() 1123 if (!EG(bailout)) { in BEGIN_EXTERN_C() 1278 if (EG(exception)) { in zend_error_va_list() 1299 EG(exception) = NULL; in zend_error_va_list() 1378 EG(fake_scope) = NULL; in zend_error_va_list() 1643 EG(exception) = NULL; in zend_user_exception_handler() 1649 if (EG(exception)) { in zend_user_exception_handler() 1651 EG(exception) = NULL; in zend_user_exception_handler() [all …]
|
H A D | zend_weakrefs.c | 44 zend_hash_init(&EG(weakrefs), 8, NULL, zend_weakref_unref, 0); in zend_weakrefs_init() 48 zend_hash_index_del(&EG(weakrefs), (zend_ulong) object); in zend_weakrefs_notify() 52 zend_hash_destroy(&EG(weakrefs)); in zend_weakrefs_shutdown() 66 zend_weakref *wr = zend_hash_index_find_ptr(&EG(weakrefs), (zend_ulong) Z_OBJ_P(referent)); in zend_weakref_find() 87 zend_hash_index_add_ptr(&EG(weakrefs), (zend_ulong) wr->referent, wr); in zend_weakref_create() 106 &EG(weakrefs), (zend_ulong) wr->referent); in zend_weakref_free() 118 return &EG(uninitialized_zval); in zend_weakref_no_write() 122 if (!EG(exception)) { in zend_weakref_no_read() 126 return &EG(uninitialized_zval); in zend_weakref_no_read()
|
H A D | zend_exceptions.c | 119 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 D | zend_objects.c | 109 if (EG(current_execute_data)) { in zend_objects_destroy_object() 128 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() 162 orig_fake_scope = EG(fake_scope); in zend_objects_destroy_object() 163 EG(fake_scope) = NULL; in zend_objects_destroy_object() 183 if (EG(exception)) { in zend_objects_destroy_object() 186 EG(exception) = old_exception; in zend_objects_destroy_object() [all …]
|
H A D | zend_builtin_functions.c | 684 if (!EG(each_deprecation_thrown)) { in ZEND_FUNCTION() 686 EG(each_deprecation_thrown) = 1; in ZEND_FUNCTION() 763 if (!EG(modified_ini_directives)) { in ZEND_FUNCTION() 1648 zend_stack_push(&EG(user_error_handlers_error_reporting), &EG(user_error_handler_error_reporting)); in ZEND_FUNCTION() 1649 zend_stack_push(&EG(user_error_handlers), &EG(user_error_handler)); in ZEND_FUNCTION() 1652 ZVAL_UNDEF(&EG(user_error_handler)); in ZEND_FUNCTION() 1673 ZVAL_UNDEF(&EG(user_error_handler)); in ZEND_FUNCTION() 1678 ZVAL_UNDEF(&EG(user_error_handler)); in ZEND_FUNCTION() 1681 …EG(user_error_handler_error_reporting) = zend_stack_int_top(&EG(user_error_handlers_error_reportin… in ZEND_FUNCTION() 1715 zend_stack_push(&EG(user_exception_handlers), &EG(user_exception_handler)); in ZEND_FUNCTION() [all …]
|
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_object_handlers.c | 190 EG(fake_scope) = NULL; in zend_std_call_getter() 226 EG(fake_scope) = NULL; in zend_std_call_setter() 264 EG(fake_scope) = NULL; in zend_std_call_unsetter() 300 EG(fake_scope) = NULL; in zend_std_call_issetter() 415 scope = EG(fake_scope); in zend_get_property_offset() 511 scope = EG(fake_scope); in zend_get_property_info() 1049 return &EG(error_zval); in zend_std_get_property_ptr_ptr() 1107 retval = &EG(error_zval); in zend_std_get_property_ptr_ptr() 1512 scope = EG(fake_scope); in zend_std_get_static_property_with_info() 1815 EG(fake_scope) = NULL; in zend_std_cast_object_tostring() [all …]
|
H A D | zend_execute.h | 172 …K_GLOBAL ZEND_ASSERT(EG(vm_stack_top) > (zval *) EG(vm_stack) && EG(vm_stack_end) > (zval *) EG(vm… 193 zend_execute_data *call = (zend_execute_data*)EG(vm_stack_top); in zend_vm_stack_push_call_frame_ex() 197 if (UNEXPECTED(used_stack > (size_t)(((char*)EG(vm_stack_end)) - (char*)call))) { in zend_vm_stack_push_call_frame_ex() 203 EG(vm_stack_top) = (zval*)((char*)call + used_stack); in zend_vm_stack_push_call_frame_ex() 277 zend_vm_stack p = EG(vm_stack); in zend_vm_stack_free_call_frame_ex() 280 ZEND_ASSERT(call == (zend_execute_data*)ZEND_VM_STACK_ELEMENTS(EG(vm_stack))); in zend_vm_stack_free_call_frame_ex() 281 EG(vm_stack_top) = prev->top; in zend_vm_stack_free_call_frame_ex() 282 EG(vm_stack_end) = prev->end; in zend_vm_stack_free_call_frame_ex() 283 EG(vm_stack) = prev; in zend_vm_stack_free_call_frame_ex() 286 EG(vm_stack_top) = (zval*)call; in zend_vm_stack_free_call_frame_ex()
|
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 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() 255 …zend_hash_apply_with_argument(&EG(persistent_list), clean_module_resource, (void *) &(ld->resource… in zend_clean_module_rsrc_dtors_cb() 341 zv = zend_hash_update(&EG(persistent_list), key, &tmp); in zend_register_persistent_resource_ex()
|
H A D | zend_constants.c | 101 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 D | zend_execute.c | 197 EG(vm_stack_top) = EG(vm_stack)->top; in zend_vm_stack_init() 198 EG(vm_stack_end) = EG(vm_stack)->end; in zend_vm_stack_init() 207 EG(vm_stack_top) = EG(vm_stack)->top; in zend_vm_stack_init_ex() 208 EG(vm_stack_end) = EG(vm_stack)->end; in zend_vm_stack_init_ex() 227 stack = EG(vm_stack); in zend_vm_stack_extend() 790 if (EG(exception)) { in zend_verify_arg_error() 897 if (EG(exception)) { in zend_verify_property_type_error() 1993 if (EG(exception)) { in zend_undefined_offset_write() 2012 if (EG(exception)) { in zend_undefined_index_write() 2099 if (EG(exception)) { in slow_index_convert() [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_objects_API.h | 39 SET_OBJ_BUCKET_NUMBER(EG(objects_store).object_buckets[(h)], EG(objects_store).free_list_head); \ 40 EG(objects_store).free_list_head = (h); \
|
/PHP-7.4/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-7.4/sapi/phpdbg/ |
H A D | phpdbg_prompt.c | 533 if (EG(exception)) { in phpdbg_compile_stdin() 581 if (EG(exception)) { in phpdbg_compile() 728 EG(exception) = NULL; in phpdbg_handle_exception() 735 if (EG(exception)) { in phpdbg_handle_exception() 736 EG(exception) = NULL; in phpdbg_handle_exception() 756 EG(exit_status) = 255; in phpdbg_handle_exception() 926 if (EG(exception)) { in PHPDBG_COMMAND() 989 if (EG(exception)) { in PHPDBG_COMMAND() 990 ex = EG(exception); in PHPDBG_COMMAND() 1013 EG(exit_status) = 0; in PHPDBG_COMMAND() [all …]
|
H A D | phpdbg_print.c | 44 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 D | phpdbg_info.c | 67 …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 D | phpdbg_frame.c | 118 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() 327 if (EG(current_execute_data) == gen->execute_data) { in phpdbg_open_generator_frame() 336 EG(current_execute_data) = gen->execute_data; in phpdbg_open_generator_frame() 342 s = phpdbg_compile_stackframe(EG(current_execute_data)); in phpdbg_open_generator_frame()
|
/PHP-7.4/ext/opcache/ |
H A D | ZendAccelerator.c | 1683 if (!EG(exception)) { in opcache_compile_file() 1853 if (!EG(current_execute_data) || !EG(current_execute_data)->opline || in file_cache_compile_file() 2047 if (!EG(exception)) { in persistent_compile_file() 2174 if (!EG(current_execute_data) || !EG(current_execute_data)->opline || in persistent_compile_file() 3212 if (EG(class_table)) { in preload_shutdown() 3539 EG(exception) = NULL; in preload_try_resolve_constants() 4252 EG(persistent_constants_count) = EG(zend_constants)->nNumUsed; in preload_load() 4255 EG(persistent_functions_count) = EG(function_table)->nNumUsed; in preload_load() 4257 if (EG(class_table)) { in preload_load() 4258 EG(persistent_classes_count) = EG(class_table)->nNumUsed; in preload_load() [all …]
|
/PHP-7.4/ext/sodium/ |
H A D | libsodium.c | 676 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 702 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 727 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 756 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 777 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 812 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 858 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 902 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 941 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() 980 sodium_remove_param_values_from_backtrace(EG(exception)); in PHP_FUNCTION() [all …]
|
/PHP-7.4/main/ |
H A D | main.c | 270 EG(precision) = i; in PHP_INI_MH() 1158 if (EG(current_execute_data)) { in php_verror() 1301 if (!EG(exception)) { in php_error_cb() 1453 EG(exit_status) = 255; in php_error_cb() 2395 EG(current_module) = module; in php_module_startup() 2397 EG(current_module) = NULL; in php_module_startup() 2600 EG(exit_status) = 0; in php_execute_script() 2678 if (EG(exception)) { in php_execute_script() 2706 EG(exit_status) = 0; in php_execute_simple_script() 2732 return EG(exit_status); in php_execute_simple_script() [all …]
|