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); in init_executor()
136 EG(symtable_cache_limit) = EG(symtable_cache) + SYMTABLE_CACHE_SIZE; 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()
176 EG(trampoline).common.function_name = NULL; in init_executor()
178 EG(ht_iterators_count) = sizeof(EG(ht_iterators_slots)) / sizeof(HashTableIterator); in init_executor()
179 EG(ht_iterators_used) = 0; in init_executor()
180 EG(ht_iterators) = EG(ht_iterators_slots); in init_executor()
181 memset(EG(ht_iterators), 0, sizeof(EG(ht_iterators_slots))); in init_executor()
183 EG(each_deprecation_thrown) = 0; in init_executor()
185 EG(persistent_constants_count) = EG(zend_constants)->nNumUsed; in init_executor()
186 EG(persistent_functions_count) = EG(function_table)->nNumUsed; in init_executor()
187 EG(persistent_classes_count) = EG(class_table)->nNumUsed; in init_executor()
191 EG(active) = 1; in init_executor()
239 EG(symbol_table).pDestructor = zend_unclean_zval_ptr_dtor; in shutdown_destructors()
244 symbols = zend_hash_num_elements(&EG(symbol_table)); in shutdown_destructors()
245 zend_hash_reverse_apply(&EG(symbol_table), (apply_func_t) zval_call_destructor); in shutdown_destructors()
246 } while (symbols != zend_hash_num_elements(&EG(symbol_table))); in shutdown_destructors()
247 zend_objects_store_call_destructors(&EG(objects_store)); in shutdown_destructors()
250 zend_objects_store_mark_destructed(&EG(objects_store)); in shutdown_destructors()
262 zend_bool fast_shutdown = is_zend_mm() && !EG(full_tables_cleanup); in shutdown_executor()
269 EG(flags) |= EG_FLAGS_IN_RESOURCE_SHUTDOWN; in shutdown_executor()
271 zend_close_rsrc_list(&EG(regular_list)); in shutdown_executor()
275 EG(active) = 0; in shutdown_executor()
278 zend_hash_graceful_reverse_destroy(&EG(symbol_table)); in shutdown_executor()
282 ZEND_HASH_REVERSE_FOREACH_VAL(EG(function_table), zv) { in shutdown_executor()
297 ZEND_HASH_REVERSE_FOREACH_VAL(EG(class_table), zv) { in shutdown_executor()
321 if (Z_TYPE(EG(user_error_handler)) != IS_UNDEF) { in shutdown_executor()
322 zval_ptr_dtor(&EG(user_error_handler)); in shutdown_executor()
323 ZVAL_UNDEF(&EG(user_error_handler)); in shutdown_executor()
326 if (Z_TYPE(EG(user_exception_handler)) != IS_UNDEF) { in shutdown_executor()
327 zval_ptr_dtor(&EG(user_exception_handler)); in shutdown_executor()
328 ZVAL_UNDEF(&EG(user_exception_handler)); in shutdown_executor()
331 zend_stack_clean(&EG(user_error_handlers_error_reporting), NULL, 1); in shutdown_executor()
332 zend_stack_clean(&EG(user_error_handlers), (void (*)(void *))ZVAL_PTR_DTOR, 1); in shutdown_executor()
333 zend_stack_clean(&EG(user_exception_handlers), (void (*)(void *))ZVAL_PTR_DTOR, 1); in shutdown_executor()
342 zend_objects_store_free_object_storage(&EG(objects_store), fast_shutdown); in shutdown_executor()
356 zend_hash_discard(EG(zend_constants), EG(persistent_constants_count)); in shutdown_executor()
357 zend_hash_discard(EG(function_table), EG(persistent_functions_count)); in shutdown_executor()
358 zend_hash_discard(EG(class_table), EG(persistent_classes_count)); in shutdown_executor()
363 if (EG(full_tables_cleanup)) { in shutdown_executor()
364 zend_hash_reverse_apply(EG(zend_constants), clean_non_persistent_constant_full); in shutdown_executor()
365 zend_hash_reverse_apply(EG(function_table), clean_non_persistent_function_full); in shutdown_executor()
366 zend_hash_reverse_apply(EG(class_table), clean_non_persistent_class_full); in shutdown_executor()
368 ZEND_HASH_REVERSE_FOREACH_STR_KEY_VAL(EG(zend_constants), key, zv) { in shutdown_executor()
370 if (_idx == EG(persistent_constants_count)) { in shutdown_executor()
381 ZEND_HASH_REVERSE_FOREACH_STR_KEY_VAL(EG(function_table), key, zv) { in shutdown_executor()
383 if (_idx == EG(persistent_functions_count)) { in shutdown_executor()
390 ZEND_HASH_REVERSE_FOREACH_STR_KEY_VAL(EG(class_table), key, zv) { in shutdown_executor()
391 if (_idx == EG(persistent_classes_count)) { in shutdown_executor()
399 while (EG(symtable_cache_ptr) > EG(symtable_cache)) { in shutdown_executor()
400 EG(symtable_cache_ptr)--; in shutdown_executor()
401 zend_hash_destroy(*EG(symtable_cache_ptr)); in shutdown_executor()
402 FREE_HASHTABLE(*EG(symtable_cache_ptr)); in shutdown_executor()
405 zend_hash_destroy(&EG(included_files)); in shutdown_executor()
407 zend_stack_destroy(&EG(user_error_handlers_error_reporting)); in shutdown_executor()
408 zend_stack_destroy(&EG(user_error_handlers)); in shutdown_executor()
409 zend_stack_destroy(&EG(user_exception_handlers)); in shutdown_executor()
410 zend_objects_store_destroy(&EG(objects_store)); in shutdown_executor()
411 if (EG(in_autoload)) { in shutdown_executor()
412 zend_hash_destroy(EG(in_autoload)); in shutdown_executor()
413 FREE_HASHTABLE(EG(in_autoload)); in shutdown_executor()
416 if (EG(ht_iterators) != EG(ht_iterators_slots)) { in shutdown_executor()
417 efree(EG(ht_iterators)); in shutdown_executor()
422 if (EG(ht_iterators_used) && !CG(unclean_shutdown)) { in shutdown_executor()
423 zend_error(E_WARNING, "Leaked %" PRIu32 " hashtable iterators", EG(ht_iterators_used)); in shutdown_executor()
427 EG(ht_iterators_used) = 0; in shutdown_executor()
445 func = EG(current_execute_data)->func; in get_active_class_name()
473 func = EG(current_execute_data)->func; in get_active_function_name()
496 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_filename()
511 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_filename_ex()
526 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_lineno()
532 if (EG(exception) && ex->opline->opcode == ZEND_HANDLE_EXCEPTION && in zend_get_executed_lineno()
533 ex->opline->lineno == 0 && EG(opline_before_exception)) { in zend_get_executed_lineno()
534 return EG(opline_before_exception)->lineno; in zend_get_executed_lineno()
545 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_scope()
560 return EG(current_execute_data) != 0; in zend_is_executing()
568 if (UNEXPECTED(EG(exception))) { in zend_use_undefined_constant()
587 if (EG(exception)) { in zend_use_undefined_constant()
629 …return zval_update_constant_ex(pp, EG(current_execute_data) ? zend_get_executed_scope() : CG(activ… in zval_update_constant()
660 if (!EG(active)) { in zend_call_function()
664 if (EG(exception)) { in zend_call_function()
671 if (!EG(current_execute_data)) { in zend_call_function()
677 EG(current_execute_data) = &dummy_execute_data; in zend_call_function()
678 } else if (EG(current_execute_data)->func && in zend_call_function()
679 ZEND_USER_CODE(EG(current_execute_data)->func->common.type) && in zend_call_function()
680 EG(current_execute_data)->opline->opcode != ZEND_DO_FCALL && in zend_call_function()
681 EG(current_execute_data)->opline->opcode != ZEND_DO_ICALL && in zend_call_function()
682 EG(current_execute_data)->opline->opcode != ZEND_DO_UCALL && in zend_call_function()
683 EG(current_execute_data)->opline->opcode != ZEND_DO_FCALL_BY_NAME) { in zend_call_function()
685 dummy_execute_data = *EG(current_execute_data); in zend_call_function()
686 dummy_execute_data.prev_execute_data = EG(current_execute_data); in zend_call_function()
690 EG(current_execute_data) = &dummy_execute_data; in zend_call_function()
708 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
709 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
719 if (UNEXPECTED(EG(exception))) { in zend_call_function()
720 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
721 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
747 if (UNEXPECTED(EG(exception))) { in zend_call_function()
749 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
750 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
751 zend_rethrow_exception(EG(current_execute_data)); in zend_call_function()
776 if (UNEXPECTED(EG(exception))) { in zend_call_function()
780 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
781 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()
830 EG(current_execute_data) = call; in zend_call_function()
837 EG(current_execute_data) = call->prev_execute_data; in zend_call_function()
840 if (EG(exception)) { in zend_call_function()
854 call->prev_execute_data = EG(current_execute_data); in zend_call_function()
855 EG(current_execute_data) = call; in zend_call_function()
857 EG(current_execute_data) = call->prev_execute_data; in zend_call_function()
869 if (EG(exception)) { in zend_call_function()
877 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
878 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
881 if (UNEXPECTED(EG(exception))) { in zend_call_function()
882 if (UNEXPECTED(!EG(current_execute_data))) { in zend_call_function()
884 } else if (EG(current_execute_data)->func && in zend_call_function()
885 ZEND_USER_CODE(EG(current_execute_data)->func->common.type)) { in zend_call_function()
886 zend_rethrow_exception(EG(current_execute_data)); in zend_call_function()
919 zv = zend_hash_find(EG(class_table), lc_name); in zend_lookup_class_ex()
947 if (!EG(autoload_func)) { in zend_lookup_class_ex()
951 EG(autoload_func) = func; in zend_lookup_class_ex()
967 if (EG(in_autoload) == NULL) { in zend_lookup_class_ex()
968 ALLOC_HASHTABLE(EG(in_autoload)); in zend_lookup_class_ex()
969 zend_hash_init(EG(in_autoload), 8, NULL, NULL, 0); in zend_lookup_class_ex()
972 if (zend_hash_add_empty_element(EG(in_autoload), lc_name) == NULL) { in zend_lookup_class_ex()
988 ZVAL_STR_COPY(&fcall_info.function_name, EG(autoload_func)->common.function_name); in zend_lookup_class_ex()
995 fcall_cache.function_handler = EG(autoload_func); in zend_lookup_class_ex()
999 orig_fake_scope = EG(fake_scope); in zend_lookup_class_ex()
1000 EG(fake_scope) = NULL; in zend_lookup_class_ex()
1002 if ((zend_call_function(&fcall_info, &fcall_cache) == SUCCESS) && !EG(exception)) { in zend_lookup_class_ex()
1003 ce = zend_hash_find_ptr(EG(class_table), lc_name); in zend_lookup_class_ex()
1006 EG(fake_scope) = orig_fake_scope; in zend_lookup_class_ex()
1011 zend_hash_del(EG(in_autoload), lc_name); in zend_lookup_class_ex()
1089 EG(no_extensions)=1; in zend_eval_stringl()
1114 EG(no_extensions)=0; in zend_eval_stringl()
1137 if (handle_exceptions && EG(exception)) { in zend_eval_stringl_ex()
1138 zend_exception_error(EG(exception), E_ERROR); in zend_eval_stringl_ex()
1161 if (EG(hard_timeout) > 0) { in zend_timeout()
1162 EG(timed_out) = 0; in zend_timeout()
1163 zend_set_timeout_ex(EG(hard_timeout), 1); in zend_timeout()
1165 EG(hard_timeout) = 0; in zend_timeout()
1169 EG(timed_out) = 0; in zend_timeout()
1173 …"Maximum execution time of " ZEND_LONG_FMT " second%s exceeded", EG(timeout_seconds), EG(timeout_s… in zend_timeout()
1181 if (EG(timed_out)) { in zend_timeout_handler()
1204 …ND_LONG_FMT " seconds exceeded (terminated) in %s on line %d\n", EG(timeout_seconds), EG(hard_time… in zend_timeout_handler()
1222 zend_on_timeout(EG(timeout_seconds)); in zend_timeout_handler()
1225 EG(timed_out) = 1; in zend_timeout_handler()
1226 EG(vm_interrupt) = 1; in zend_timeout_handler()
1229 if (EG(hard_timeout) > 0) { in zend_timeout_handler()
1231 zend_set_timeout_ex(EG(hard_timeout), 1); in zend_timeout_handler()
1335 EG(timeout_seconds) = seconds; in zend_set_timeout()
1337 EG(timed_out) = 0; in zend_set_timeout()
1346 EG(timed_out) = 0; in zend_unset_timeout()
1354 if (EG(timeout_seconds)) { in zend_unset_timeout()
1366 EG(timed_out) = 0; in zend_unset_timeout()
1394 ce = zend_get_called_scope(EG(current_execute_data)); in zend_fetch_class()
1412 if (!(fetch_type & ZEND_FETCH_CLASS_SILENT) && !EG(exception)) { in zend_fetch_class()
1437 if (EG(exception)) { in zend_fetch_class_by_name()
1441 ZVAL_OBJ(&exception_zv, EG(exception)); in zend_fetch_class_by_name()
1465 return zend_hash_del_ind(&EG(symbol_table), name); in zend_delete_global_variable()
1475 ex = EG(current_execute_data); in zend_rebuild_symbol_table()
1487 if (EG(symtable_cache_ptr) > EG(symtable_cache)) { in zend_rebuild_symbol_table()
1488 symbol_table = ex->symbol_table = *(--EG(symtable_cache_ptr)); in zend_rebuild_symbol_table()
1578 zend_execute_data *execute_data = EG(current_execute_data); in zend_set_local_var()
1621 zend_execute_data *execute_data = EG(current_execute_data); in zend_set_local_var_str()