Lines Matching refs:EG
666 ZEND_HASH_FOREACH_BUCKET(EG(zend_constants), p) { in accel_copy_permanent_strings()
700 ZEND_HASH_FOREACH_BUCKET(EG(ini_directives), p) { in accel_copy_permanent_strings()
885 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()
1013 er = EG(error_reporting); in zend_get_file_handle_timestamp()
1014 EG(error_reporting) = 0; in zend_get_file_handle_timestamp()
1020 EG(error_reporting) = er; in zend_get_file_handle_timestamp()
1263 if (EXPECTED(EG(current_execute_data)) && in accel_make_persistent_key()
1627 if (zend_hash_exists(&EG(symbol_table), jit_auto_globals_str[i])) { in zend_accel_get_auto_globals()
1637 if (zend_hash_exists(&EG(symbol_table), jit_auto_globals_str[3])) { in zend_accel_get_auto_globals_no_jit()
1683 if (!EG(exception)) { in opcache_compile_file()
1740 orig_functions_count = EG(function_table)->nNumUsed; in opcache_compile_file()
1741 orig_class_count = EG(class_table)->nNumUsed; in opcache_compile_file()
1742 ZVAL_COPY_VALUE(&orig_user_error_handler, &EG(user_error_handler)); in opcache_compile_file()
1745 ZVAL_UNDEF(&EG(user_error_handler)); in opcache_compile_file()
1767 EG(user_error_handler) = orig_user_error_handler; in opcache_compile_file()
1833 if (!EG(exception)) { in file_cache_compile_file()
1853 if (!EG(current_execute_data) || !EG(current_execute_data)->opline || in file_cache_compile_file()
1854 !EG(current_execute_data)->func || in file_cache_compile_file()
1855 !ZEND_USER_CODE(EG(current_execute_data)->func->common.type) || in file_cache_compile_file()
1856 EG(current_execute_data)->opline->opcode != ZEND_INCLUDE_OR_EVAL || in file_cache_compile_file()
1857 (EG(current_execute_data)->opline->extended_value != ZEND_INCLUDE_ONCE && in file_cache_compile_file()
1858 EG(current_execute_data)->opline->extended_value != ZEND_REQUIRE_ONCE)) { in file_cache_compile_file()
1859 …if (zend_hash_add_empty_element(&EG(included_files), persistent_script->script.filename) != NULL) { in file_cache_compile_file()
1952 ((!EG(current_execute_data) && in persistent_compile_file()
1955 (EG(current_execute_data) && in persistent_compile_file()
1956 EG(current_execute_data)->func && in persistent_compile_file()
1957 ZEND_USER_CODE(EG(current_execute_data)->func->common.type) && in persistent_compile_file()
1958 ZCG(cache_opline) == EG(current_execute_data)->opline))) { in persistent_compile_file()
1989 if (!EG(exception)) { in persistent_compile_file()
2047 if (!EG(exception)) { in persistent_compile_file()
2112 uint32_t old_const_num = zend_hash_next_free_element(EG(zend_constants)); in persistent_compile_file()
2152 uint32_t new_const_num = zend_hash_next_free_element(EG(zend_constants)); in persistent_compile_file()
2155 zend_hash_index_del(EG(zend_constants), new_const_num); in persistent_compile_file()
2174 if (!EG(current_execute_data) || !EG(current_execute_data)->opline || in persistent_compile_file()
2175 !EG(current_execute_data)->func || in persistent_compile_file()
2176 !ZEND_USER_CODE(EG(current_execute_data)->func->common.type) || in persistent_compile_file()
2177 EG(current_execute_data)->opline->opcode != ZEND_INCLUDE_OR_EVAL || in persistent_compile_file()
2178 (EG(current_execute_data)->opline->extended_value != ZEND_INCLUDE_ONCE && in persistent_compile_file()
2179 EG(current_execute_data)->opline->extended_value != ZEND_REQUIRE_ONCE)) { in persistent_compile_file()
2180 …if (zend_hash_add_empty_element(&EG(included_files), persistent_script->script.filename) != NULL) { in persistent_compile_file()
2236 if ((!EG(current_execute_data) && in persistent_stream_open_function()
2239 (EG(current_execute_data) && in persistent_stream_open_function()
2240 EG(current_execute_data)->func && in persistent_stream_open_function()
2241 ZEND_USER_CODE(EG(current_execute_data)->func->common.type) && in persistent_stream_open_function()
2242 ZCG(cache_opline) == EG(current_execute_data)->opline)) { in persistent_stream_open_function()
2262 if ((!EG(current_execute_data) && in persistent_zend_resolve_path()
2264 (EG(current_execute_data) && in persistent_zend_resolve_path()
2265 EG(current_execute_data)->func && in persistent_zend_resolve_path()
2266 ZEND_USER_CODE(EG(current_execute_data)->func->common.type) && in persistent_zend_resolve_path()
2267 EG(current_execute_data)->opline->opcode == ZEND_INCLUDE_OR_EVAL && in persistent_zend_resolve_path()
2268 (EG(current_execute_data)->opline->extended_value == ZEND_INCLUDE_ONCE || in persistent_zend_resolve_path()
2269 EG(current_execute_data)->opline->extended_value == ZEND_REQUIRE_ONCE))) { in persistent_zend_resolve_path()
2284 ZCG(cache_opline) = EG(current_execute_data) ? EG(current_execute_data)->opline : NULL; in persistent_zend_resolve_path()
2317 ZCG(cache_opline) = EG(current_execute_data) ? EG(current_execute_data)->opline : NULL; in persistent_zend_resolve_path()
3033 …if ((ini_entry = zend_hash_str_find_ptr(EG(ini_directives), "include_path", sizeof("include_path")… in accel_post_startup()
3105 …if ((ini_entry = zend_hash_str_find_ptr(EG(ini_directives), "include_path", sizeof("include_path")… in accel_shutdown()
3193 if (EG(zend_constants)) { in preload_shutdown()
3194 ZEND_HASH_REVERSE_FOREACH_VAL(EG(zend_constants), zv) { in preload_shutdown()
3203 if (EG(function_table)) { in preload_shutdown()
3204 ZEND_HASH_REVERSE_FOREACH_VAL(EG(function_table), zv) { in preload_shutdown()
3212 if (EG(class_table)) { in preload_shutdown()
3213 ZEND_HASH_REVERSE_FOREACH_VAL(EG(class_table), zv) { in preload_shutdown()
3442 p = zend_hash_find_ptr(EG(class_table), key); in get_unlinked_dependency()
3464 p = zend_hash_find_ptr(EG(class_table), ce->interface_names[i].lc_name); in get_unlinked_dependency()
3476 p = zend_hash_find_ptr(EG(class_table), ce->trait_names[i].lc_name); in get_unlinked_dependency()
3497 EG(exception) = (void*)(uintptr_t)-1; /* prevent error reporting */ in preload_try_resolve_constants()
3539 EG(exception) = NULL; in preload_try_resolve_constants()
3561 p = zend_hash_find_ptr(EG(class_table), lcname); in preload_try_resolve_property_types()
3601 known = zend_hash_exists(EG(class_table), lcname); in preload_is_type_known()
3614 p = zend_hash_find_ptr(EG(class_table), key); in preload_is_method_maybe_override()
3624 zend_class_entry *p = zend_hash_find_ptr(EG(class_table), ce->interface_names[i].lc_name); in preload_is_method_maybe_override()
3634 zend_class_entry *p = zend_hash_find_ptr(EG(class_table), ce->trait_names[i].lc_name); in preload_is_method_maybe_override()
3680 ZEND_HASH_REVERSE_FOREACH_VAL(EG(class_table), zv) { in preload_link()
3690 if (zend_hash_exists(EG(class_table), key)) { in preload_link()
3701 parent = zend_hash_find_ptr(EG(class_table), key); in preload_link()
3715 p = zend_hash_find_ptr(EG(class_table), ce->interface_names[i].lc_name); in preload_link()
3731 p = zend_hash_find_ptr(EG(class_table), ce->trait_names[i].lc_name); in preload_link()
3750 zv = zend_hash_set_bucket_key(EG(class_table), (Bucket*)zv, key); in preload_link()
3798 orig_dtor = EG(class_table)->pDestructor; in preload_link()
3799 EG(class_table)->pDestructor = NULL; in preload_link()
3800 ZEND_HASH_REVERSE_FOREACH_STR_KEY_VAL(EG(class_table), key, zv) { in preload_link()
3808 && zend_hash_exists(EG(class_table), key)) { in preload_link()
3848 EG(class_table)->nNumOfElements--; in preload_link()
3850 EG(class_table)->pDestructor = orig_dtor; in preload_link()
3851 zend_hash_rehash(EG(class_table)); in preload_link()
3917 uint32_t num_classes = zend_hash_num_elements(EG(class_table)); in preload_ensure_classes_loadable()
3922 ZEND_HASH_REVERSE_FOREACH_PTR(EG(class_table), ce) { in preload_ensure_classes_loadable()
4251 if (EG(zend_constants)) { in preload_load()
4252 EG(persistent_constants_count) = EG(zend_constants)->nNumUsed; in preload_load()
4254 if (EG(function_table)) { 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()
4279 if (zend_hash_exists(&EG(included_files), filename)) { in preload_autoload()
4288 zend_hash_add_empty_element(&EG(included_files), filename); in preload_autoload()
4300 old_execute_data = EG(current_execute_data); in preload_autoload()
4301 EG(current_execute_data) = NULL; in preload_autoload()
4302 old_fake_scope = EG(fake_scope); in preload_autoload()
4303 EG(fake_scope) = NULL; in preload_autoload()
4312 if (EG(exception)) { in preload_autoload()
4317 EG(fake_scope) = old_fake_scope; in preload_autoload()
4318 EG(current_execute_data) = old_execute_data; in preload_autoload()
4321 if (old_execute_data->symbol_table == &EG(symbol_table)) { in preload_autoload()
4368 zend_hash_add_empty_element(&EG(included_files), file_handle.opened_path); in accel_preload()
4374 if (UNEXPECTED(EG(exception))) { in accel_preload()
4375 if (Z_TYPE(EG(user_exception_handler)) != IS_UNDEF) { in accel_preload()
4378 if (EG(exception)) { in accel_preload()
4379 zend_exception_error(EG(exception), E_ERROR); in accel_preload()
4419 EG(flags) |= EG_FLAGS_IN_SHUTDOWN; in accel_preload()
4426 zend_hash_graceful_reverse_destroy(&EG(symbol_table)); in accel_preload()
4427 zend_hash_init(&EG(symbol_table), 0, NULL, ZVAL_PTR_DTOR, 0); in accel_preload()
4435 zend_objects_store_free_object_storage(&EG(objects_store), 1); in accel_preload()
4438 ZEND_HASH_REVERSE_FOREACH_VAL(EG(function_table), zv) { in accel_preload()
4455 ZEND_HASH_REVERSE_FOREACH_VAL(EG(class_table), zv) { in accel_preload()
4493 if (Z_TYPE(EG(user_error_handler)) != IS_UNDEF) { in accel_preload()
4494 zval_ptr_dtor(&EG(user_error_handler)); in accel_preload()
4495 ZVAL_UNDEF(&EG(user_error_handler)); in accel_preload()
4498 if (Z_TYPE(EG(user_exception_handler)) != IS_UNDEF) { in accel_preload()
4499 zval_ptr_dtor(&EG(user_exception_handler)); in accel_preload()
4500 ZVAL_UNDEF(&EG(user_exception_handler)); in accel_preload()
4503 zend_stack_clean(&EG(user_error_handlers_error_reporting), NULL, 1); in accel_preload()
4504 zend_stack_clean(&EG(user_error_handlers), (void (*)(void *))ZVAL_PTR_DTOR, 1); in accel_preload()
4505 zend_stack_clean(&EG(user_exception_handlers), (void (*)(void *))ZVAL_PTR_DTOR, 1); in accel_preload()
4509 if (EG(full_tables_cleanup)) { in accel_preload()
4527 if (EG(zend_constants)) { in accel_preload()
4533 zend_execute_data *orig_execute_data = EG(current_execute_data); in accel_preload()
4539 EG(current_execute_data) = &fake_execute_data; in accel_preload()
4543 EG(current_execute_data) = orig_execute_data; in accel_preload()
4546 ZEND_HASH_REVERSE_FOREACH_STR_KEY_VAL(EG(zend_constants), key, zv) { in accel_preload()
4551 EG(zend_constants)->pDestructor(zv); in accel_preload()
4818 orig_error_reporting = EG(error_reporting); in accel_finish_startup()
4819 EG(error_reporting) = 0; in accel_finish_startup()
4823 EG(error_reporting) = orig_error_reporting; in accel_finish_startup()