Lines Matching refs:EG
688 ZEND_HASH_FOREACH_BUCKET(EG(zend_constants), p) { in accel_copy_permanent_strings()
722 ZEND_HASH_FOREACH_BUCKET(EG(ini_directives), p) { in accel_copy_permanent_strings()
911 er = EG(error_reporting); in zend_get_stream_timestamp()
912 EG(error_reporting) = 0; in zend_get_stream_timestamp()
918 EG(error_reporting) = er; in zend_get_stream_timestamp()
981 !EG(current_execute_data) && in zend_get_file_handle_timestamp()
1039 er = EG(error_reporting); in zend_get_file_handle_timestamp()
1040 EG(error_reporting) = 0; in zend_get_file_handle_timestamp()
1046 EG(error_reporting) = er; in zend_get_file_handle_timestamp()
1295 if (EXPECTED(EG(current_execute_data)) && in accel_make_persistent_key()
1680 if (zend_hash_exists(&EG(symbol_table), ZSTR_KNOWN(ZEND_STR_AUTOGLOBAL_SERVER))) { in zend_accel_get_auto_globals()
1683 if (zend_hash_exists(&EG(symbol_table), ZSTR_KNOWN(ZEND_STR_AUTOGLOBAL_ENV))) { in zend_accel_get_auto_globals()
1686 if (zend_hash_exists(&EG(symbol_table), ZSTR_KNOWN(ZEND_STR_AUTOGLOBAL_REQUEST))) { in zend_accel_get_auto_globals()
1728 if (!EG(exception)) { in opcache_compile_file()
1784 orig_functions_count = EG(function_table)->nNumUsed; in opcache_compile_file()
1785 orig_class_count = EG(class_table)->nNumUsed; in opcache_compile_file()
1786 ZVAL_COPY_VALUE(&orig_user_error_handler, &EG(user_error_handler)); in opcache_compile_file()
1789 ZVAL_UNDEF(&EG(user_error_handler)); in opcache_compile_file()
1814 EG(user_error_handler) = orig_user_error_handler; in opcache_compile_file()
1815 EG(record_errors) = 0; in opcache_compile_file()
1838 new_persistent_script->num_warnings = EG(num_errors); in opcache_compile_file()
1839 new_persistent_script->warnings = EG(errors); in opcache_compile_file()
1840 EG(num_errors) = 0; in opcache_compile_file()
1841 EG(errors) = NULL; in opcache_compile_file()
1884 if (!EG(exception)) { in file_cache_compile_file()
1903 if (!EG(current_execute_data) || !EG(current_execute_data)->opline || in file_cache_compile_file()
1904 !EG(current_execute_data)->func || in file_cache_compile_file()
1905 !ZEND_USER_CODE(EG(current_execute_data)->func->common.type) || in file_cache_compile_file()
1906 EG(current_execute_data)->opline->opcode != ZEND_INCLUDE_OR_EVAL || in file_cache_compile_file()
1907 (EG(current_execute_data)->opline->extended_value != ZEND_INCLUDE_ONCE && in file_cache_compile_file()
1908 EG(current_execute_data)->opline->extended_value != ZEND_REQUIRE_ONCE)) { in file_cache_compile_file()
1909 …if (zend_hash_add_empty_element(&EG(included_files), persistent_script->script.filename) != NULL) { in file_cache_compile_file()
2000 ((!EG(current_execute_data) && in persistent_compile_file()
2003 (EG(current_execute_data) && in persistent_compile_file()
2004 EG(current_execute_data)->func && in persistent_compile_file()
2005 ZEND_USER_CODE(EG(current_execute_data)->func->common.type) && in persistent_compile_file()
2006 ZCG(cache_opline) == EG(current_execute_data)->opline))) { in persistent_compile_file()
2036 if (!EG(exception)) { in persistent_compile_file()
2093 if (!EG(exception)) { in persistent_compile_file()
2157 uint32_t old_const_num = zend_hash_next_free_element(EG(zend_constants)); in persistent_compile_file()
2197 uint32_t new_const_num = zend_hash_next_free_element(EG(zend_constants)); in persistent_compile_file()
2200 zend_hash_index_del(EG(zend_constants), new_const_num); in persistent_compile_file()
2222 if (!EG(current_execute_data) || in persistent_compile_file()
2223 !EG(current_execute_data)->func || in persistent_compile_file()
2224 !ZEND_USER_CODE(EG(current_execute_data)->func->common.type) || in persistent_compile_file()
2225 !EG(current_execute_data)->opline || in persistent_compile_file()
2226 EG(current_execute_data)->opline->opcode != ZEND_INCLUDE_OR_EVAL || in persistent_compile_file()
2227 (EG(current_execute_data)->opline->extended_value != ZEND_INCLUDE_ONCE && in persistent_compile_file()
2228 EG(current_execute_data)->opline->extended_value != ZEND_REQUIRE_ONCE)) { in persistent_compile_file()
2229 …if (zend_hash_add_empty_element(&EG(included_files), persistent_script->script.filename) != NULL) { in persistent_compile_file()
2393 zend_persist_warnings_calc(EG(num_errors), EG(errors)); in zend_accel_inheritance_cache_add()
2450 entry->num_warnings = EG(num_errors); in zend_accel_inheritance_cache_add()
2451 entry->warnings = zend_persist_warnings(EG(num_errors), EG(errors)); in zend_accel_inheritance_cache_add()
2455 EG(num_errors) = 0; in zend_accel_inheritance_cache_add()
2456 EG(errors) = NULL; in zend_accel_inheritance_cache_add()
2506 if ((!EG(current_execute_data) && in persistent_stream_open_function()
2509 (EG(current_execute_data) && in persistent_stream_open_function()
2510 EG(current_execute_data)->func && in persistent_stream_open_function()
2511 ZEND_USER_CODE(EG(current_execute_data)->func->common.type) && in persistent_stream_open_function()
2512 ZCG(cache_opline) == EG(current_execute_data)->opline)) { in persistent_stream_open_function()
2531 if ((!EG(current_execute_data)) || in persistent_zend_resolve_path()
2532 (EG(current_execute_data) && in persistent_zend_resolve_path()
2533 EG(current_execute_data)->func && in persistent_zend_resolve_path()
2534 ZEND_USER_CODE(EG(current_execute_data)->func->common.type) && in persistent_zend_resolve_path()
2535 EG(current_execute_data)->opline->opcode == ZEND_INCLUDE_OR_EVAL && in persistent_zend_resolve_path()
2536 (EG(current_execute_data)->opline->extended_value == ZEND_INCLUDE_ONCE || in persistent_zend_resolve_path()
2537 EG(current_execute_data)->opline->extended_value == ZEND_REQUIRE_ONCE))) { in persistent_zend_resolve_path()
2551 ZCG(cache_opline) = EG(current_execute_data) ? EG(current_execute_data)->opline : NULL; in persistent_zend_resolve_path()
2584 ZCG(cache_opline) = EG(current_execute_data) ? EG(current_execute_data)->opline : NULL; in persistent_zend_resolve_path()
3324 …if ((ini_entry = zend_hash_str_find_ptr(EG(ini_directives), "include_path", sizeof("include_path")…
3410 …if ((ini_entry = zend_hash_str_find_ptr(EG(ini_directives), "include_path", sizeof("include_path")…
3498 if (EG(zend_constants)) {
3499 ZEND_HASH_REVERSE_FOREACH_VAL(EG(zend_constants), zv) {
3508 if (EG(function_table)) {
3509 ZEND_HASH_REVERSE_FOREACH_VAL(EG(function_table), zv) {
3517 if (EG(class_table)) {
3518 ZEND_HASH_REVERSE_FOREACH_VAL(EG(class_table), zv) {
3606 ZEND_HASH_FOREACH_BUCKET_FROM(src, p, EG(persistent_classes_count)) {
3713 zend_class_entry *parent = zend_hash_find_ptr(EG(class_table), key);
3725 zend_hash_find_ptr(EG(class_table), ce->interface_names[i].lc_name);
3737 zend_hash_find_ptr(EG(class_table), ce->trait_names[i].lc_name);
3755 EG(exception) = (void*)(uintptr_t)-1; /* prevent error reporting */
3808 EG(exception) = NULL;
3849 func = zend_hash_find_ptr(EG(function_table), key);
3900 ZEND_HASH_FOREACH_STR_KEY_VAL_FROM(EG(class_table), key, zv, EG(persistent_classes_count)) {
3909 if (zend_hash_exists(EG(class_table), lcname)) {
3921 zv = zend_hash_set_bucket_key(EG(class_table), (Bucket*)zv, lcname);
3962 zv = zend_hash_set_bucket_key(EG(class_table), (Bucket*)zv, key);
3969 EG(record_errors) = false;
3970 ZEND_ASSERT(EG(num_errors) > 0);
3971 zend_hash_update_ptr(&errors, key, EG(errors)[EG(num_errors)-1]);
3972 EG(num_errors)--;
3987 ZEND_HASH_REVERSE_FOREACH_VAL(EG(class_table), zv) {
4006 EG(class_table), key, zv, EG(persistent_classes_count)) {
4014 && zend_hash_exists(EG(class_table), lcname)) {
4050 ZEND_HASH_FOREACH_PTR_FROM(EG(function_table), op_array, EG(persistent_functions_count)) {
4054 ZEND_HASH_FOREACH_PTR_FROM(EG(class_table), ce, EG(persistent_classes_count)) {
4357 if (EG(zend_constants)) {
4358 EG(persistent_constants_count) = EG(zend_constants)->nNumUsed;
4360 if (EG(function_table)) {
4361 EG(persistent_functions_count) = EG(function_table)->nNumUsed;
4363 if (EG(class_table)) {
4364 EG(persistent_classes_count) = EG(class_table)->nNumUsed;
4417 zend_hash_add_empty_element(&EG(included_files), file_handle.opened_path);
4423 if (UNEXPECTED(EG(exception))) {
4424 if (Z_TYPE(EG(user_exception_handler)) != IS_UNDEF) {
4427 if (EG(exception)) {
4428 ret = zend_exception_error(EG(exception), E_ERROR);
4437 if (EG(exception)) {
4438 zend_exception_error(EG(exception), E_ERROR);
4465 if (EG(zend_constants)) {
4469 zend_execute_data *orig_execute_data = EG(current_execute_data);
4475 EG(current_execute_data) = &fake_execute_data;
4479 EG(current_execute_data) = orig_execute_data;
4484 EG(flags) |= EG_FLAGS_IN_SHUTDOWN;
4496 ZEND_ASSERT(zend_hash_num_elements(EG(zend_constants)) == EG(persistent_constants_count));
4498 zend_hash_init(&EG(symbol_table), 0, NULL, ZVAL_PTR_DTOR, 0);
4502 if (EG(full_tables_cleanup)) {
4754 orig_error_reporting = EG(error_reporting);
4755 EG(error_reporting) = 0;
4759 EG(error_reporting) = orig_error_reporting;
4793 EG(class_table) = NULL;
4794 EG(function_table) = NULL;