Lines Matching refs:EG
71 active_opline-EG(active_op_array)->opcodes,
128 ZVAL_NULL(&EG(uninitialized_zval)); in init_executor()
129 ZVAL_ERROR(&EG(error_zval)); in init_executor()
135 EG(symtable_cache_ptr) = EG(symtable_cache) - 1; in init_executor()
136 EG(symtable_cache_limit) = EG(symtable_cache) + SYMTABLE_CACHE_SIZE - 1; in init_executor()
137 EG(no_extensions) = 0; in init_executor()
139 EG(function_table) = CG(function_table); in init_executor()
140 EG(class_table) = CG(class_table); in init_executor()
142 EG(in_autoload) = NULL; in init_executor()
143 EG(autoload_func) = NULL; in init_executor()
144 EG(error_handling) = EH_NORMAL; in init_executor()
145 EG(flags) = EG_FLAGS_INITIAL; in init_executor()
149 zend_hash_init(&EG(symbol_table), 64, NULL, ZVAL_PTR_DTOR, 0); in init_executor()
153 zend_hash_init(&EG(included_files), 8, NULL, NULL, 0); in init_executor()
155 EG(ticks_count) = 0; in init_executor()
157 ZVAL_UNDEF(&EG(user_error_handler)); in init_executor()
158 ZVAL_UNDEF(&EG(user_exception_handler)); in init_executor()
160 EG(current_execute_data) = NULL; in init_executor()
162 zend_stack_init(&EG(user_error_handlers_error_reporting), sizeof(int)); in init_executor()
163 zend_stack_init(&EG(user_error_handlers), sizeof(zval)); in init_executor()
164 zend_stack_init(&EG(user_exception_handlers), sizeof(zval)); in init_executor()
166 zend_objects_store_init(&EG(objects_store), 1024); in init_executor()
168 EG(full_tables_cleanup) = 0; in init_executor()
169 EG(vm_interrupt) = 0; in init_executor()
170 EG(timed_out) = 0; in init_executor()
172 EG(exception) = NULL; in init_executor()
173 EG(prev_exception) = NULL; in init_executor()
175 EG(fake_scope) = NULL; in init_executor()
177 EG(ht_iterators_count) = sizeof(EG(ht_iterators_slots)) / sizeof(HashTableIterator); in init_executor()
178 EG(ht_iterators_used) = 0; in init_executor()
179 EG(ht_iterators) = EG(ht_iterators_slots); in init_executor()
180 memset(EG(ht_iterators), 0, sizeof(EG(ht_iterators_slots))); in init_executor()
182 EG(each_deprecation_thrown) = 0; in init_executor()
184 EG(active) = 1; in init_executor()
232 EG(symbol_table).pDestructor = zend_unclean_zval_ptr_dtor; in shutdown_destructors()
237 symbols = zend_hash_num_elements(&EG(symbol_table)); in shutdown_destructors()
238 zend_hash_reverse_apply(&EG(symbol_table), (apply_func_t) zval_call_destructor); in shutdown_destructors()
239 } while (symbols != zend_hash_num_elements(&EG(symbol_table))); in shutdown_destructors()
240 zend_objects_store_call_destructors(&EG(objects_store)); in shutdown_destructors()
243 zend_objects_store_mark_destructed(&EG(objects_store)); in shutdown_destructors()
255 zend_bool fast_shutdown = is_zend_mm() && !EG(full_tables_cleanup); in shutdown_executor()
263 zend_close_rsrc_list(&EG(regular_list)); in shutdown_executor()
266 zend_objects_store_free_object_storage(&EG(objects_store), fast_shutdown); in shutdown_executor()
270 EG(active) = 0; in shutdown_executor()
282 ZEND_HASH_REVERSE_FOREACH_VAL(EG(zend_constants), zv) { in shutdown_executor()
288 ZEND_HASH_REVERSE_FOREACH_VAL(EG(function_table), zv) { in shutdown_executor()
294 ZEND_HASH_REVERSE_FOREACH_VAL(EG(class_table), zv) { in shutdown_executor()
303 zend_hash_graceful_reverse_destroy(&EG(symbol_table)); in shutdown_executor()
313 if (Z_TYPE(EG(user_error_handler)) != IS_UNDEF) { in shutdown_executor()
314 zval_ptr_dtor(&EG(user_error_handler)); in shutdown_executor()
315 ZVAL_UNDEF(&EG(user_error_handler)); in shutdown_executor()
318 if (Z_TYPE(EG(user_exception_handler)) != IS_UNDEF) { in shutdown_executor()
319 zval_ptr_dtor(&EG(user_exception_handler)); in shutdown_executor()
320 ZVAL_UNDEF(&EG(user_exception_handler)); in shutdown_executor()
323 zend_stack_clean(&EG(user_error_handlers_error_reporting), NULL, 1); in shutdown_executor()
324 zend_stack_clean(&EG(user_error_handlers), (void (*)(void *))ZVAL_PTR_DTOR, 1); in shutdown_executor()
325 zend_stack_clean(&EG(user_exception_handlers), (void (*)(void *))ZVAL_PTR_DTOR, 1); in shutdown_executor()
329 if (EG(full_tables_cleanup)) { in shutdown_executor()
330 zend_hash_reverse_apply(EG(zend_constants), clean_non_persistent_constant_full); in shutdown_executor()
331 zend_hash_reverse_apply(EG(function_table), clean_non_persistent_function_full); in shutdown_executor()
332 zend_hash_reverse_apply(EG(class_table), clean_non_persistent_class_full); in shutdown_executor()
334 ZEND_HASH_REVERSE_FOREACH_STR_KEY_VAL(EG(zend_constants), key, zv) { in shutdown_executor()
346 ZEND_HASH_REVERSE_FOREACH_STR_KEY_VAL(EG(function_table), key, zv) { in shutdown_executor()
354 ZEND_HASH_REVERSE_FOREACH_STR_KEY_VAL(EG(class_table), key, zv) { in shutdown_executor()
366 while (EG(symtable_cache_ptr)>=EG(symtable_cache)) { in shutdown_executor()
367 zend_hash_destroy(*EG(symtable_cache_ptr)); in shutdown_executor()
368 FREE_HASHTABLE(*EG(symtable_cache_ptr)); in shutdown_executor()
369 EG(symtable_cache_ptr)--; in shutdown_executor()
372 zend_hash_destroy(&EG(included_files)); in shutdown_executor()
374 zend_stack_destroy(&EG(user_error_handlers_error_reporting)); in shutdown_executor()
375 zend_stack_destroy(&EG(user_error_handlers)); in shutdown_executor()
376 zend_stack_destroy(&EG(user_exception_handlers)); in shutdown_executor()
377 zend_objects_store_destroy(&EG(objects_store)); in shutdown_executor()
378 if (EG(in_autoload)) { in shutdown_executor()
379 zend_hash_destroy(EG(in_autoload)); in shutdown_executor()
380 FREE_HASHTABLE(EG(in_autoload)); in shutdown_executor()
383 if (EG(ht_iterators) != EG(ht_iterators_slots)) { in shutdown_executor()
384 efree(EG(ht_iterators)); in shutdown_executor()
389 if (EG(ht_iterators_used) && !CG(unclean_shutdown)) { in shutdown_executor()
390 zend_error(E_WARNING, "Leaked %" PRIu32 " hashtable iterators", EG(ht_iterators_used)); in shutdown_executor()
394 EG(ht_iterators_used) = 0; in shutdown_executor()
412 func = EG(current_execute_data)->func; in get_active_class_name()
440 func = EG(current_execute_data)->func; in get_active_function_name()
463 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_filename()
478 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_filename_ex()
493 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_lineno()
499 if (EG(exception) && ex->opline->opcode == ZEND_HANDLE_EXCEPTION && in zend_get_executed_lineno()
500 ex->opline->lineno == 0 && EG(opline_before_exception)) { in zend_get_executed_lineno()
501 return EG(opline_before_exception)->lineno; in zend_get_executed_lineno()
512 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_scope()
527 return EG(current_execute_data) != 0; in zend_is_executing()
563 ZEND_ASSERT(EG(current_execute_data)); in zval_update_constant_ex()
573 if (UNEXPECTED(EG(exception))) { in zval_update_constant_ex()
596 if (EG(exception)) { in zval_update_constant_ex()
639 …return zval_update_constant_ex(pp, EG(current_execute_data) ? zend_get_executed_scope() : CG(activ… in zval_update_constant()
668 if (!EG(active)) { in zend_call_function()
672 if (EG(exception)) { in zend_call_function()
685 if (!EG(current_execute_data)) { in zend_call_function()
691 EG(current_execute_data) = &dummy_execute_data; in zend_call_function()
692 } else if (EG(current_execute_data)->func && in zend_call_function()
693 ZEND_USER_CODE(EG(current_execute_data)->func->common.type) && in zend_call_function()
694 EG(current_execute_data)->opline->opcode != ZEND_DO_FCALL && in zend_call_function()
695 EG(current_execute_data)->opline->opcode != ZEND_DO_ICALL && in zend_call_function()
696 EG(current_execute_data)->opline->opcode != ZEND_DO_UCALL && in zend_call_function()
697 EG(current_execute_data)->opline->opcode != ZEND_DO_FCALL_BY_NAME) { in zend_call_function()
699 dummy_execute_data = *EG(current_execute_data); in zend_call_function()
700 dummy_execute_data.prev_execute_data = EG(current_execute_data); in zend_call_function()
704 EG(current_execute_data) = &dummy_execute_data; in zend_call_function()
722 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
723 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
733 if (UNEXPECTED(EG(exception))) { in zend_call_function()
734 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
735 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
754 if (UNEXPECTED(EG(exception))) { in zend_call_function()
756 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
757 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
780 if (UNEXPECTED(EG(exception))) { in zend_call_function()
784 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
785 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
817 const zend_op *current_opline_before_exception = EG(opline_before_exception); in zend_call_function()
821 EG(opline_before_exception) = current_opline_before_exception; in zend_call_function()
829 call->prev_execute_data = EG(current_execute_data); in zend_call_function()
831 EG(current_execute_data) = call; in zend_call_function()
838 EG(current_execute_data) = call->prev_execute_data; in zend_call_function()
841 if (EG(exception)) { in zend_call_function()
855 call->prev_execute_data = EG(current_execute_data); in zend_call_function()
856 EG(current_execute_data) = call; in zend_call_function()
858 EG(current_execute_data) = call->prev_execute_data; in zend_call_function()
870 if (EG(exception)) { in zend_call_function()
878 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
879 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
882 if (UNEXPECTED(EG(exception))) { in zend_call_function()
883 if (UNEXPECTED(!EG(current_execute_data))) { in zend_call_function()
885 } else if (EG(current_execute_data)->func && in zend_call_function()
886 ZEND_USER_CODE(EG(current_execute_data)->func->common.type)) { in zend_call_function()
887 zend_rethrow_exception(EG(current_execute_data)); in zend_call_function()
919 ce = zend_hash_find_ptr(EG(class_table), lc_name); in zend_lookup_class_ex()
937 if (!EG(autoload_func)) { in zend_lookup_class_ex()
938 zend_function *func = zend_hash_find_ptr(EG(function_table), ZSTR_KNOWN(ZEND_STR_MAGIC_AUTOLOAD)); in zend_lookup_class_ex()
940 EG(autoload_func) = func; in zend_lookup_class_ex()
956 if (EG(in_autoload) == NULL) { in zend_lookup_class_ex()
957 ALLOC_HASHTABLE(EG(in_autoload)); in zend_lookup_class_ex()
958 zend_hash_init(EG(in_autoload), 8, NULL, NULL, 0); in zend_lookup_class_ex()
961 if (zend_hash_add_empty_element(EG(in_autoload), lc_name) == NULL) { in zend_lookup_class_ex()
977 ZVAL_STR_COPY(&fcall_info.function_name, EG(autoload_func)->common.function_name); in zend_lookup_class_ex()
985 fcall_cache.function_handler = EG(autoload_func); in zend_lookup_class_ex()
991 if ((zend_call_function(&fcall_info, &fcall_cache) == SUCCESS) && !EG(exception)) { in zend_lookup_class_ex()
992 ce = zend_hash_find_ptr(EG(class_table), lc_name); in zend_lookup_class_ex()
999 zend_hash_del(EG(in_autoload), lc_name); in zend_lookup_class_ex()
1077 EG(no_extensions)=1; in zend_eval_stringl()
1102 EG(no_extensions)=0; in zend_eval_stringl()
1125 if (handle_exceptions && EG(exception)) { in zend_eval_stringl_ex()
1126 zend_exception_error(EG(exception), E_ERROR); in zend_eval_stringl_ex()
1149 if (EG(hard_timeout) > 0) { in zend_timeout()
1150 EG(timed_out) = 0; in zend_timeout()
1151 zend_set_timeout_ex(EG(hard_timeout), 1); in zend_timeout()
1153 EG(hard_timeout) = 0; in zend_timeout()
1157 EG(timed_out) = 0; in zend_timeout()
1161 …"Maximum execution time of " ZEND_LONG_FMT " second%s exceeded", EG(timeout_seconds), EG(timeout_s… in zend_timeout()
1169 if (EG(timed_out)) { in zend_timeout_handler()
1192 …ND_LONG_FMT " seconds exceeded (terminated) in %s on line %d\n", EG(timeout_seconds), EG(hard_time… in zend_timeout_handler()
1210 zend_on_timeout(EG(timeout_seconds)); in zend_timeout_handler()
1213 EG(timed_out) = 1; in zend_timeout_handler()
1214 EG(vm_interrupt) = 1; in zend_timeout_handler()
1217 if (EG(hard_timeout) > 0) { in zend_timeout_handler()
1219 zend_set_timeout_ex(EG(hard_timeout), 1); in zend_timeout_handler()
1325 EG(timeout_seconds) = seconds; in zend_set_timeout()
1327 EG(timed_out) = 0; in zend_set_timeout()
1336 EG(timed_out) = 0; in zend_unset_timeout()
1343 EG(timed_out) = 0; in zend_unset_timeout()
1346 if (EG(timeout_seconds)) { in zend_unset_timeout()
1358 EG(timed_out) = 0; in zend_unset_timeout()
1387 ce = zend_get_called_scope(EG(current_execute_data)); in zend_fetch_class()
1405 if (!(fetch_type & ZEND_FETCH_CLASS_SILENT) && !EG(exception)) { in zend_fetch_class()
1427 if ((fetch_type & ZEND_FETCH_CLASS_SILENT) == 0 && !EG(exception)) { in zend_fetch_class_by_name()
1503 return zend_hash_del_ind(&EG(symbol_table), name); in zend_delete_global_variable()
1513 ex = EG(current_execute_data); in zend_rebuild_symbol_table()
1525 if (EG(symtable_cache_ptr) >= EG(symtable_cache)) { in zend_rebuild_symbol_table()
1527 symbol_table = ex->symbol_table = *(EG(symtable_cache_ptr)--); in zend_rebuild_symbol_table()
1618 zend_execute_data *execute_data = EG(current_execute_data); in zend_set_local_var()
1660 zend_execute_data *execute_data = EG(current_execute_data); in zend_set_local_var_str()
1702 zend_execute_data *ex = EG(current_execute_data); in zend_forbid_dynamic_call()