Lines Matching refs:EG

659 	ZEND_HASH_FOREACH_BUCKET(EG(zend_constants), p) {  in accel_copy_permanent_strings()
693 ZEND_HASH_FOREACH_BUCKET(EG(ini_directives), p) { in accel_copy_permanent_strings()
882 er = EG(error_reporting); in zend_get_stream_timestamp()
883 EG(error_reporting) = 0; in zend_get_stream_timestamp()
889 EG(error_reporting) = er; in zend_get_stream_timestamp()
952 !EG(current_execute_data) && in zend_get_file_handle_timestamp()
1010 er = EG(error_reporting); in zend_get_file_handle_timestamp()
1011 EG(error_reporting) = 0; in zend_get_file_handle_timestamp()
1017 EG(error_reporting) = er; in zend_get_file_handle_timestamp()
1260 if (EXPECTED(EG(current_execute_data)) && in accel_make_persistent_key()
1621 if (zend_hash_exists(&EG(symbol_table), jit_auto_globals_str[i])) { in zend_accel_get_auto_globals()
1631 if (zend_hash_exists(&EG(symbol_table), jit_auto_globals_str[3])) { in zend_accel_get_auto_globals_no_jit()
1717 if (!EG(exception)) { in opcache_compile_file()
1773 orig_functions_count = EG(function_table)->nNumUsed; in opcache_compile_file()
1774 orig_class_count = EG(class_table)->nNumUsed; in opcache_compile_file()
1775 ZVAL_COPY_VALUE(&orig_user_error_handler, &EG(user_error_handler)); in opcache_compile_file()
1778 ZVAL_UNDEF(&EG(user_error_handler)); in opcache_compile_file()
1803 EG(user_error_handler) = orig_user_error_handler; in opcache_compile_file()
1875 if (!EG(exception)) { in file_cache_compile_file()
1894 if (!EG(current_execute_data) || !EG(current_execute_data)->opline || in file_cache_compile_file()
1895 !EG(current_execute_data)->func || in file_cache_compile_file()
1896 !ZEND_USER_CODE(EG(current_execute_data)->func->common.type) || in file_cache_compile_file()
1897 EG(current_execute_data)->opline->opcode != ZEND_INCLUDE_OR_EVAL || in file_cache_compile_file()
1898 (EG(current_execute_data)->opline->extended_value != ZEND_INCLUDE_ONCE && in file_cache_compile_file()
1899 EG(current_execute_data)->opline->extended_value != ZEND_REQUIRE_ONCE)) { in file_cache_compile_file()
1900 …if (zend_hash_add_empty_element(&EG(included_files), persistent_script->script.filename) != NULL) { in file_cache_compile_file()
1994 ((!EG(current_execute_data) && in persistent_compile_file()
1997 (EG(current_execute_data) && in persistent_compile_file()
1998 EG(current_execute_data)->func && in persistent_compile_file()
1999 ZEND_USER_CODE(EG(current_execute_data)->func->common.type) && in persistent_compile_file()
2000 ZCG(cache_opline) == EG(current_execute_data)->opline))) { in persistent_compile_file()
2031 if (!EG(exception)) { in persistent_compile_file()
2088 if (!EG(exception)) { in persistent_compile_file()
2152 uint32_t old_const_num = zend_hash_next_free_element(EG(zend_constants)); in persistent_compile_file()
2192 uint32_t new_const_num = zend_hash_next_free_element(EG(zend_constants)); in persistent_compile_file()
2195 zend_hash_index_del(EG(zend_constants), new_const_num); in persistent_compile_file()
2217 if (!EG(current_execute_data) || in persistent_compile_file()
2218 !EG(current_execute_data)->func || in persistent_compile_file()
2219 !ZEND_USER_CODE(EG(current_execute_data)->func->common.type) || in persistent_compile_file()
2220 !EG(current_execute_data)->opline || in persistent_compile_file()
2221 EG(current_execute_data)->opline->opcode != ZEND_INCLUDE_OR_EVAL || in persistent_compile_file()
2222 (EG(current_execute_data)->opline->extended_value != ZEND_INCLUDE_ONCE && in persistent_compile_file()
2223 EG(current_execute_data)->opline->extended_value != ZEND_REQUIRE_ONCE)) { in persistent_compile_file()
2224 …if (zend_hash_add_empty_element(&EG(included_files), persistent_script->script.filename) != NULL) { in persistent_compile_file()
2281 if ((!EG(current_execute_data) && in persistent_stream_open_function()
2284 (EG(current_execute_data) && in persistent_stream_open_function()
2285 EG(current_execute_data)->func && in persistent_stream_open_function()
2286 ZEND_USER_CODE(EG(current_execute_data)->func->common.type) && in persistent_stream_open_function()
2287 ZCG(cache_opline) == EG(current_execute_data)->opline)) { in persistent_stream_open_function()
2307 if ((!EG(current_execute_data) && in persistent_zend_resolve_path()
2309 (EG(current_execute_data) && in persistent_zend_resolve_path()
2310 EG(current_execute_data)->func && in persistent_zend_resolve_path()
2311 ZEND_USER_CODE(EG(current_execute_data)->func->common.type) && in persistent_zend_resolve_path()
2312 EG(current_execute_data)->opline->opcode == ZEND_INCLUDE_OR_EVAL && in persistent_zend_resolve_path()
2313 (EG(current_execute_data)->opline->extended_value == ZEND_INCLUDE_ONCE || in persistent_zend_resolve_path()
2314 EG(current_execute_data)->opline->extended_value == ZEND_REQUIRE_ONCE))) { in persistent_zend_resolve_path()
2329 ZCG(cache_opline) = EG(current_execute_data) ? EG(current_execute_data)->opline : NULL; in persistent_zend_resolve_path()
2362 ZCG(cache_opline) = EG(current_execute_data) ? EG(current_execute_data)->opline : NULL; in persistent_zend_resolve_path()
3109 …if ((ini_entry = zend_hash_str_find_ptr(EG(ini_directives), "include_path", sizeof("include_path")…
3185 …if ((ini_entry = zend_hash_str_find_ptr(EG(ini_directives), "include_path", sizeof("include_path")…
3273 if (EG(zend_constants)) {
3274 ZEND_HASH_REVERSE_FOREACH_VAL(EG(zend_constants), zv) {
3283 if (EG(function_table)) {
3284 ZEND_HASH_REVERSE_FOREACH_VAL(EG(function_table), zv) {
3292 if (EG(class_table)) {
3293 ZEND_HASH_REVERSE_FOREACH_VAL(EG(class_table), zv) {
3522 p = zend_hash_find_ptr(EG(class_table), key);
3544 p = zend_hash_find_ptr(EG(class_table), ce->interface_names[i].lc_name);
3556 p = zend_hash_find_ptr(EG(class_table), ce->trait_names[i].lc_name);
3577 EG(exception) = (void*)(uintptr_t)-1; /* prevent error reporting */
3619 EG(exception) = NULL;
3627 zend_class_entry *ce = zend_hash_find_ptr(EG(class_table), lcname);
3677 zend_bool known = zend_hash_exists(EG(class_table), lcname);
3702 p = zend_hash_find_ptr(EG(class_table), key);
3712 zend_class_entry *p = zend_hash_find_ptr(EG(class_table), ce->interface_names[i].lc_name);
3722 zend_class_entry *p = zend_hash_find_ptr(EG(class_table), ce->trait_names[i].lc_name);
3768 ZEND_HASH_REVERSE_FOREACH_VAL(EG(class_table), zv) {
3778 if (zend_hash_exists(EG(class_table), key)) {
3789 parent = zend_hash_find_ptr(EG(class_table), key);
3803 p = zend_hash_find_ptr(EG(class_table), ce->interface_names[i].lc_name);
3819 p = zend_hash_find_ptr(EG(class_table), ce->trait_names[i].lc_name);
3838 zv = zend_hash_set_bucket_key(EG(class_table), (Bucket*)zv, key);
3886 orig_dtor = EG(class_table)->pDestructor;
3887 EG(class_table)->pDestructor = NULL;
3888 ZEND_HASH_REVERSE_FOREACH_STR_KEY_VAL(EG(class_table), key, zv) {
3896 && zend_hash_exists(EG(class_table), key)) {
3936 EG(class_table)->nNumOfElements--;
3938 EG(class_table)->pDestructor = orig_dtor;
3939 zend_hash_rehash(EG(class_table));
4005 uint32_t num_classes = zend_hash_num_elements(EG(class_table));
4010 ZEND_HASH_REVERSE_FOREACH_PTR(EG(class_table), ce) {
4347 if (EG(zend_constants)) {
4348 EG(persistent_constants_count) = EG(zend_constants)->nNumUsed;
4350 if (EG(function_table)) {
4351 EG(persistent_functions_count) = EG(function_table)->nNumUsed;
4353 if (EG(class_table)) {
4354 EG(persistent_classes_count) = EG(class_table)->nNumUsed;
4377 if (zend_hash_exists(&EG(included_files), filename)) {
4386 zend_hash_add_empty_element(&EG(included_files), filename);
4398 old_execute_data = EG(current_execute_data);
4399 EG(current_execute_data) = NULL;
4400 old_fake_scope = EG(fake_scope);
4401 EG(fake_scope) = NULL;
4410 if (EG(exception)) {
4415 EG(fake_scope) = old_fake_scope;
4416 EG(current_execute_data) = old_execute_data;
4419 if (old_execute_data->symbol_table == &EG(symbol_table)) {
4477 zend_hash_add_empty_element(&EG(included_files), file_handle.opened_path);
4483 if (UNEXPECTED(EG(exception))) {
4484 if (Z_TYPE(EG(user_exception_handler)) != IS_UNDEF) {
4487 if (EG(exception)) {
4488 ret = zend_exception_error(EG(exception), E_ERROR);
4497 if (EG(exception)) {
4498 zend_exception_error(EG(exception), E_ERROR);
4532 EG(flags) |= EG_FLAGS_IN_SHUTDOWN;
4540 zend_hash_graceful_reverse_destroy(&EG(symbol_table));
4541 zend_hash_init(&EG(symbol_table), 0, NULL, ZVAL_PTR_DTOR, 0);
4549 zend_objects_store_free_object_storage(&EG(objects_store), 1);
4552 ZEND_HASH_REVERSE_FOREACH_VAL(EG(function_table), zv) {
4569 ZEND_HASH_REVERSE_FOREACH_VAL(EG(class_table), zv) {
4607 if (Z_TYPE(EG(user_error_handler)) != IS_UNDEF) {
4608 zval_ptr_dtor(&EG(user_error_handler));
4609 ZVAL_UNDEF(&EG(user_error_handler));
4612 if (Z_TYPE(EG(user_exception_handler)) != IS_UNDEF) {
4613 zval_ptr_dtor(&EG(user_exception_handler));
4614 ZVAL_UNDEF(&EG(user_exception_handler));
4617 zend_stack_clean(&EG(user_error_handlers_error_reporting), NULL, 1);
4618 zend_stack_clean(&EG(user_error_handlers), (void (*)(void *))ZVAL_PTR_DTOR, 1);
4619 zend_stack_clean(&EG(user_exception_handlers), (void (*)(void *))ZVAL_PTR_DTOR, 1);
4623 if (EG(full_tables_cleanup)) {
4641 if (EG(zend_constants)) {
4647 zend_execute_data *orig_execute_data = EG(current_execute_data);
4653 EG(current_execute_data) = &fake_execute_data;
4657 EG(current_execute_data) = orig_execute_data;
4660 ZEND_HASH_REVERSE_FOREACH_STR_KEY_VAL(EG(zend_constants), key, zv) {
4665 EG(zend_constants)->pDestructor(zv);
4920 orig_error_reporting = EG(error_reporting);
4921 EG(error_reporting) = 0;
4925 EG(error_reporting) = orig_error_reporting;