Lines Matching refs:EG

69 				active_opline-EG(active_op_array)->opcodes,
126 ZVAL_NULL(&EG(uninitialized_zval)); in init_executor()
127 ZVAL_ERROR(&EG(error_zval)); in init_executor()
133 EG(symtable_cache_ptr) = EG(symtable_cache) - 1; in init_executor()
134 EG(symtable_cache_limit) = EG(symtable_cache) + SYMTABLE_CACHE_SIZE - 1; in init_executor()
135 EG(no_extensions) = 0; in init_executor()
137 EG(function_table) = CG(function_table); in init_executor()
138 EG(class_table) = CG(class_table); in init_executor()
140 EG(in_autoload) = NULL; in init_executor()
141 EG(autoload_func) = NULL; in init_executor()
142 EG(error_handling) = EH_NORMAL; in init_executor()
143 EG(flags) = EG_FLAGS_INITIAL; in init_executor()
147 zend_hash_init(&EG(symbol_table), 64, NULL, ZVAL_PTR_DTOR, 0); in init_executor()
151 zend_hash_init(&EG(included_files), 8, NULL, NULL, 0); in init_executor()
153 EG(ticks_count) = 0; in init_executor()
155 ZVAL_UNDEF(&EG(user_error_handler)); in init_executor()
156 ZVAL_UNDEF(&EG(user_exception_handler)); in init_executor()
158 EG(current_execute_data) = NULL; in init_executor()
160 zend_stack_init(&EG(user_error_handlers_error_reporting), sizeof(int)); in init_executor()
161 zend_stack_init(&EG(user_error_handlers), sizeof(zval)); in init_executor()
162 zend_stack_init(&EG(user_exception_handlers), sizeof(zval)); in init_executor()
164 zend_objects_store_init(&EG(objects_store), 1024); in init_executor()
166 EG(full_tables_cleanup) = 0; in init_executor()
167 EG(vm_interrupt) = 0; in init_executor()
168 EG(timed_out) = 0; in init_executor()
170 EG(exception) = NULL; in init_executor()
171 EG(prev_exception) = NULL; in init_executor()
173 EG(fake_scope) = NULL; in init_executor()
175 EG(ht_iterators_count) = sizeof(EG(ht_iterators_slots)) / sizeof(HashTableIterator); in init_executor()
176 EG(ht_iterators_used) = 0; in init_executor()
177 EG(ht_iterators) = EG(ht_iterators_slots); in init_executor()
178 memset(EG(ht_iterators), 0, sizeof(EG(ht_iterators_slots))); in init_executor()
180 EG(each_deprecation_thrown) = 0; in init_executor()
182 EG(persistent_constants_count) = EG(zend_constants)->nNumUsed; in init_executor()
183 EG(persistent_functions_count) = EG(function_table)->nNumUsed; in init_executor()
184 EG(persistent_classes_count) = EG(class_table)->nNumUsed; in init_executor()
186 EG(active) = 1; in init_executor()
234 EG(symbol_table).pDestructor = zend_unclean_zval_ptr_dtor; in shutdown_destructors()
239 symbols = zend_hash_num_elements(&EG(symbol_table)); in shutdown_destructors()
240 zend_hash_reverse_apply(&EG(symbol_table), (apply_func_t) zval_call_destructor); in shutdown_destructors()
241 } while (symbols != zend_hash_num_elements(&EG(symbol_table))); in shutdown_destructors()
242 zend_objects_store_call_destructors(&EG(objects_store)); in shutdown_destructors()
245 zend_objects_store_mark_destructed(&EG(objects_store)); in shutdown_destructors()
257 zend_bool fast_shutdown = is_zend_mm() && !EG(full_tables_cleanup); in shutdown_executor()
265 zend_close_rsrc_list(&EG(regular_list)); in shutdown_executor()
268 zend_objects_store_free_object_storage(&EG(objects_store), fast_shutdown); in shutdown_executor()
272 EG(active) = 0; in shutdown_executor()
284 zend_hash_discard(EG(zend_constants), EG(persistent_constants_count)); in shutdown_executor()
285 zend_hash_discard(EG(function_table), EG(persistent_functions_count)); in shutdown_executor()
286 zend_hash_discard(EG(class_table), EG(persistent_classes_count)); in shutdown_executor()
289 zend_hash_graceful_reverse_destroy(&EG(symbol_table)); in shutdown_executor()
299 if (Z_TYPE(EG(user_error_handler)) != IS_UNDEF) { in shutdown_executor()
300 zval_ptr_dtor(&EG(user_error_handler)); in shutdown_executor()
301 ZVAL_UNDEF(&EG(user_error_handler)); in shutdown_executor()
304 if (Z_TYPE(EG(user_exception_handler)) != IS_UNDEF) { in shutdown_executor()
305 zval_ptr_dtor(&EG(user_exception_handler)); in shutdown_executor()
306 ZVAL_UNDEF(&EG(user_exception_handler)); in shutdown_executor()
309 zend_stack_clean(&EG(user_error_handlers_error_reporting), NULL, 1); in shutdown_executor()
310 zend_stack_clean(&EG(user_error_handlers), (void (*)(void *))ZVAL_PTR_DTOR, 1); in shutdown_executor()
311 zend_stack_clean(&EG(user_exception_handlers), (void (*)(void *))ZVAL_PTR_DTOR, 1); in shutdown_executor()
315 if (EG(full_tables_cleanup)) { in shutdown_executor()
316 zend_hash_reverse_apply(EG(zend_constants), clean_non_persistent_constant_full); in shutdown_executor()
317 zend_hash_reverse_apply(EG(function_table), clean_non_persistent_function_full); in shutdown_executor()
318 zend_hash_reverse_apply(EG(class_table), clean_non_persistent_class_full); in shutdown_executor()
320 ZEND_HASH_REVERSE_FOREACH_STR_KEY_VAL(EG(zend_constants), key, zv) { in shutdown_executor()
332 ZEND_HASH_REVERSE_FOREACH_STR_KEY_VAL(EG(function_table), key, zv) { in shutdown_executor()
340 ZEND_HASH_REVERSE_FOREACH_STR_KEY_VAL(EG(class_table), key, zv) { in shutdown_executor()
352 while (EG(symtable_cache_ptr)>=EG(symtable_cache)) { in shutdown_executor()
353 zend_hash_destroy(*EG(symtable_cache_ptr)); in shutdown_executor()
354 FREE_HASHTABLE(*EG(symtable_cache_ptr)); in shutdown_executor()
355 EG(symtable_cache_ptr)--; in shutdown_executor()
358 zend_hash_destroy(&EG(included_files)); in shutdown_executor()
360 zend_stack_destroy(&EG(user_error_handlers_error_reporting)); in shutdown_executor()
361 zend_stack_destroy(&EG(user_error_handlers)); in shutdown_executor()
362 zend_stack_destroy(&EG(user_exception_handlers)); in shutdown_executor()
363 zend_objects_store_destroy(&EG(objects_store)); in shutdown_executor()
364 if (EG(in_autoload)) { in shutdown_executor()
365 zend_hash_destroy(EG(in_autoload)); in shutdown_executor()
366 FREE_HASHTABLE(EG(in_autoload)); in shutdown_executor()
369 if (EG(ht_iterators) != EG(ht_iterators_slots)) { in shutdown_executor()
370 efree(EG(ht_iterators)); in shutdown_executor()
375 if (EG(ht_iterators_used) && !CG(unclean_shutdown)) { in shutdown_executor()
376 zend_error(E_WARNING, "Leaked %" PRIu32 " hashtable iterators", EG(ht_iterators_used)); in shutdown_executor()
380 EG(ht_iterators_used) = 0; in shutdown_executor()
398 func = EG(current_execute_data)->func; in get_active_class_name()
426 func = EG(current_execute_data)->func; in get_active_function_name()
449 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_filename()
464 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_filename_ex()
479 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_lineno()
485 if (EG(exception) && ex->opline->opcode == ZEND_HANDLE_EXCEPTION && in zend_get_executed_lineno()
486 ex->opline->lineno == 0 && EG(opline_before_exception)) { in zend_get_executed_lineno()
487 return EG(opline_before_exception)->lineno; in zend_get_executed_lineno()
498 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_scope()
513 return EG(current_execute_data) != 0; in zend_is_executing()
521 if (UNEXPECTED(EG(exception))) { in zend_use_undefined_constant()
540 if (EG(exception)) { in zend_use_undefined_constant()
582 …return zval_update_constant_ex(pp, EG(current_execute_data) ? zend_get_executed_scope() : CG(activ… in zval_update_constant()
611 if (!EG(active)) { in zend_call_function()
615 if (EG(exception)) { in zend_call_function()
622 if (!EG(current_execute_data)) { in zend_call_function()
628 EG(current_execute_data) = &dummy_execute_data; in zend_call_function()
629 } else if (EG(current_execute_data)->func && in zend_call_function()
630 ZEND_USER_CODE(EG(current_execute_data)->func->common.type) && in zend_call_function()
631 EG(current_execute_data)->opline->opcode != ZEND_DO_FCALL && in zend_call_function()
632 EG(current_execute_data)->opline->opcode != ZEND_DO_ICALL && in zend_call_function()
633 EG(current_execute_data)->opline->opcode != ZEND_DO_UCALL && in zend_call_function()
634 EG(current_execute_data)->opline->opcode != ZEND_DO_FCALL_BY_NAME) { in zend_call_function()
636 dummy_execute_data = *EG(current_execute_data); in zend_call_function()
637 dummy_execute_data.prev_execute_data = EG(current_execute_data); in zend_call_function()
641 EG(current_execute_data) = &dummy_execute_data; in zend_call_function()
659 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
660 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
670 if (UNEXPECTED(EG(exception))) { in zend_call_function()
671 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
672 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
691 if (UNEXPECTED(EG(exception))) { in zend_call_function()
693 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
694 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
717 if (UNEXPECTED(EG(exception))) { in zend_call_function()
721 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
722 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
753 const zend_op *current_opline_before_exception = EG(opline_before_exception); in zend_call_function()
757 EG(opline_before_exception) = current_opline_before_exception; in zend_call_function()
765 call->prev_execute_data = EG(current_execute_data); in zend_call_function()
767 EG(current_execute_data) = call; in zend_call_function()
774 EG(current_execute_data) = call->prev_execute_data; in zend_call_function()
777 if (EG(exception)) { in zend_call_function()
791 call->prev_execute_data = EG(current_execute_data); in zend_call_function()
792 EG(current_execute_data) = call; in zend_call_function()
794 EG(current_execute_data) = call->prev_execute_data; in zend_call_function()
806 if (EG(exception)) { in zend_call_function()
814 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
815 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
818 if (UNEXPECTED(EG(exception))) { in zend_call_function()
819 if (UNEXPECTED(!EG(current_execute_data))) { in zend_call_function()
821 } else if (EG(current_execute_data)->func && in zend_call_function()
822 ZEND_USER_CODE(EG(current_execute_data)->func->common.type)) { in zend_call_function()
823 zend_rethrow_exception(EG(current_execute_data)); in zend_call_function()
856 zv = zend_hash_find(EG(class_table), lc_name); in zend_lookup_class_ex()
874 if (!EG(autoload_func)) { in zend_lookup_class_ex()
878 EG(autoload_func) = func; in zend_lookup_class_ex()
894 if (EG(in_autoload) == NULL) { in zend_lookup_class_ex()
895 ALLOC_HASHTABLE(EG(in_autoload)); in zend_lookup_class_ex()
896 zend_hash_init(EG(in_autoload), 8, NULL, NULL, 0); in zend_lookup_class_ex()
899 if (zend_hash_add_empty_element(EG(in_autoload), lc_name) == NULL) { in zend_lookup_class_ex()
915 ZVAL_STR_COPY(&fcall_info.function_name, EG(autoload_func)->common.function_name); in zend_lookup_class_ex()
922 fcall_cache.function_handler = EG(autoload_func); in zend_lookup_class_ex()
926 orig_fake_scope = EG(fake_scope); in zend_lookup_class_ex()
927 EG(fake_scope) = NULL; in zend_lookup_class_ex()
929 if ((zend_call_function(&fcall_info, &fcall_cache) == SUCCESS) && !EG(exception)) { in zend_lookup_class_ex()
930 ce = zend_hash_find_ptr(EG(class_table), lc_name); in zend_lookup_class_ex()
933 EG(fake_scope) = orig_fake_scope; in zend_lookup_class_ex()
938 zend_hash_del(EG(in_autoload), lc_name); in zend_lookup_class_ex()
1016 EG(no_extensions)=1; in zend_eval_stringl()
1041 EG(no_extensions)=0; in zend_eval_stringl()
1064 if (handle_exceptions && EG(exception)) { in zend_eval_stringl_ex()
1065 zend_exception_error(EG(exception), E_ERROR); in zend_eval_stringl_ex()
1088 if (EG(hard_timeout) > 0) { in zend_timeout()
1089 EG(timed_out) = 0; in zend_timeout()
1090 zend_set_timeout_ex(EG(hard_timeout), 1); in zend_timeout()
1092 EG(hard_timeout) = 0; in zend_timeout()
1096 EG(timed_out) = 0; in zend_timeout()
1100 …"Maximum execution time of " ZEND_LONG_FMT " second%s exceeded", EG(timeout_seconds), EG(timeout_s… in zend_timeout()
1108 if (EG(timed_out)) { in zend_timeout_handler()
1131 …ND_LONG_FMT " seconds exceeded (terminated) in %s on line %d\n", EG(timeout_seconds), EG(hard_time… in zend_timeout_handler()
1149 zend_on_timeout(EG(timeout_seconds)); in zend_timeout_handler()
1152 EG(timed_out) = 1; in zend_timeout_handler()
1153 EG(vm_interrupt) = 1; in zend_timeout_handler()
1156 if (EG(hard_timeout) > 0) { in zend_timeout_handler()
1158 zend_set_timeout_ex(EG(hard_timeout), 1); in zend_timeout_handler()
1264 EG(timeout_seconds) = seconds; in zend_set_timeout()
1266 EG(timed_out) = 0; in zend_set_timeout()
1275 EG(timed_out) = 0; in zend_unset_timeout()
1282 EG(timed_out) = 0; in zend_unset_timeout()
1285 if (EG(timeout_seconds)) { in zend_unset_timeout()
1297 EG(timed_out) = 0; in zend_unset_timeout()
1326 ce = zend_get_called_scope(EG(current_execute_data)); in zend_fetch_class()
1344 if (!(fetch_type & ZEND_FETCH_CLASS_SILENT) && !EG(exception)) { in zend_fetch_class()
1366 if ((fetch_type & ZEND_FETCH_CLASS_SILENT) == 0 && !EG(exception)) { in zend_fetch_class_by_name()
1442 return zend_hash_del_ind(&EG(symbol_table), name); in zend_delete_global_variable()
1452 ex = EG(current_execute_data); in zend_rebuild_symbol_table()
1464 if (EG(symtable_cache_ptr) >= EG(symtable_cache)) { in zend_rebuild_symbol_table()
1466 symbol_table = ex->symbol_table = *(EG(symtable_cache_ptr)--); in zend_rebuild_symbol_table()
1556 zend_execute_data *execute_data = EG(current_execute_data); in zend_set_local_var()
1599 zend_execute_data *execute_data = EG(current_execute_data); in zend_set_local_var_str()
1643 zend_execute_data *ex = EG(current_execute_data); in zend_forbid_dynamic_call()