Lines Matching refs:EG
68 active_opline-EG(active_op_array)->opcodes,
132 ZVAL_NULL(&EG(uninitialized_zval)); in init_executor()
133 ZVAL_NULL(&EG(error_zval)); in init_executor()
139 EG(symtable_cache_ptr) = EG(symtable_cache) - 1; in init_executor()
140 EG(symtable_cache_limit) = EG(symtable_cache) + SYMTABLE_CACHE_SIZE - 1; in init_executor()
141 EG(no_extensions) = 0; in init_executor()
143 EG(function_table) = CG(function_table); in init_executor()
144 EG(class_table) = CG(class_table); in init_executor()
146 EG(in_autoload) = NULL; in init_executor()
147 EG(autoload_func) = NULL; in init_executor()
148 EG(error_handling) = EH_NORMAL; in init_executor()
152 zend_hash_init(&EG(symbol_table), 64, NULL, ZVAL_PTR_DTOR, 0); in init_executor()
153 EG(valid_symbol_table) = 1; in init_executor()
157 zend_hash_init(&EG(included_files), 8, NULL, NULL, 0); in init_executor()
159 EG(ticks_count) = 0; in init_executor()
161 ZVAL_UNDEF(&EG(user_error_handler)); in init_executor()
163 EG(current_execute_data) = NULL; in init_executor()
165 zend_stack_init(&EG(user_error_handlers_error_reporting), sizeof(int)); in init_executor()
166 zend_stack_init(&EG(user_error_handlers), sizeof(zval)); in init_executor()
167 zend_stack_init(&EG(user_exception_handlers), sizeof(zval)); in init_executor()
169 zend_objects_store_init(&EG(objects_store), 1024); in init_executor()
171 EG(full_tables_cleanup) = 0; in init_executor()
173 EG(timed_out) = 0; in init_executor()
176 EG(exception) = NULL; in init_executor()
177 EG(prev_exception) = NULL; in init_executor()
179 EG(scope) = NULL; in init_executor()
181 EG(ht_iterators_count) = sizeof(EG(ht_iterators_slots)) / sizeof(HashTableIterator); in init_executor()
182 EG(ht_iterators_used) = 0; in init_executor()
183 EG(ht_iterators) = EG(ht_iterators_slots); in init_executor()
184 memset(EG(ht_iterators), 0, sizeof(EG(ht_iterators_slots))); 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()
275 EG(symbol_table).pDestructor = zend_unclean_zval_ptr_dtor; in shutdown_executor()
277 zend_hash_graceful_reverse_destroy(&EG(symbol_table)); in shutdown_executor()
279 EG(valid_symbol_table) = 0; in shutdown_executor()
285 if (Z_TYPE(EG(user_error_handler)) != IS_UNDEF) { in shutdown_executor()
286 zeh = &EG(user_error_handler); in shutdown_executor()
288 ZVAL_UNDEF(&EG(user_error_handler)); in shutdown_executor()
291 if (Z_TYPE(EG(user_exception_handler)) != IS_UNDEF) { in shutdown_executor()
292 zeh = &EG(user_exception_handler); in shutdown_executor()
294 ZVAL_UNDEF(&EG(user_exception_handler)); in shutdown_executor()
297 zend_stack_clean(&EG(user_error_handlers_error_reporting), NULL, 1); in shutdown_executor()
298 zend_stack_clean(&EG(user_error_handlers), (void (*)(void *))ZVAL_PTR_DTOR, 1); in shutdown_executor()
299 zend_stack_clean(&EG(user_exception_handlers), (void (*)(void *))ZVAL_PTR_DTOR, 1); in shutdown_executor()
312 if (EG(full_tables_cleanup)) { in shutdown_executor()
313 ZEND_HASH_FOREACH_PTR(EG(function_table), func) { in shutdown_executor()
318 ZEND_HASH_REVERSE_FOREACH_PTR(EG(class_table), ce) { in shutdown_executor()
326 ZEND_HASH_REVERSE_FOREACH_PTR(EG(function_table), func) { in shutdown_executor()
332 ZEND_HASH_REVERSE_FOREACH_PTR(EG(class_table), ce) { in shutdown_executor()
351 zend_close_rsrc_list(&EG(regular_list)); in shutdown_executor()
361 zend_objects_store_free_object_storage(&EG(objects_store)); in shutdown_executor()
366 if (EG(full_tables_cleanup)) { in shutdown_executor()
367 zend_hash_reverse_apply(EG(function_table), clean_non_persistent_function_full); in shutdown_executor()
368 zend_hash_reverse_apply(EG(class_table), clean_non_persistent_class_full); in shutdown_executor()
370 zend_hash_reverse_apply(EG(function_table), clean_non_persistent_function); in shutdown_executor()
371 zend_hash_reverse_apply(EG(class_table), clean_non_persistent_class); in shutdown_executor()
374 while (EG(symtable_cache_ptr)>=EG(symtable_cache)) { in shutdown_executor()
375 zend_hash_destroy(*EG(symtable_cache_ptr)); in shutdown_executor()
376 FREE_HASHTABLE(*EG(symtable_cache_ptr)); in shutdown_executor()
377 EG(symtable_cache_ptr)--; in shutdown_executor()
386 zend_hash_destroy(&EG(included_files)); in shutdown_executor()
388 zend_stack_destroy(&EG(user_error_handlers_error_reporting)); in shutdown_executor()
389 zend_stack_destroy(&EG(user_error_handlers)); in shutdown_executor()
390 zend_stack_destroy(&EG(user_exception_handlers)); in shutdown_executor()
391 zend_objects_store_destroy(&EG(objects_store)); in shutdown_executor()
392 if (EG(in_autoload)) { in shutdown_executor()
393 zend_hash_destroy(EG(in_autoload)); in shutdown_executor()
394 FREE_HASHTABLE(EG(in_autoload)); in shutdown_executor()
401 if (EG(ht_iterators_used) && !CG(unclean_shutdown)) { in shutdown_executor()
402 zend_error(E_WARNING, "Leaked %" PRIu32 " hashtable iterators", EG(ht_iterators_used)); in shutdown_executor()
406 EG(ht_iterators_used) = 0; in shutdown_executor()
407 if (EG(ht_iterators) != EG(ht_iterators_slots)) { in shutdown_executor()
408 efree(EG(ht_iterators)); in shutdown_executor()
411 EG(active) = 0; in shutdown_executor()
427 func = EG(current_execute_data)->func; in get_active_class_name()
455 func = EG(current_execute_data)->func; in get_active_function_name()
478 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_filename()
493 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_filename_ex()
508 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_lineno()
514 if (EG(exception) && ex->opline->opcode == ZEND_HANDLE_EXCEPTION && in zend_get_executed_lineno()
515 ex->opline->lineno == 0 && EG(opline_before_exception)) { in zend_get_executed_lineno()
516 return EG(opline_before_exception)->lineno; in zend_get_executed_lineno()
527 return EG(current_execute_data) != 0; in zend_is_executing()
566 ZEND_ASSERT(EG(current_execute_data)); in zval_update_constant_ex()
570 if (EG(scope) && EG(scope)->name) { in zval_update_constant_ex()
571 ZVAL_STR_COPY(p, EG(scope)->name); in zval_update_constant_ex()
576 if (UNEXPECTED(EG(exception))) { in zval_update_constant_ex()
603 if (EG(exception)) { in zval_update_constant_ex()
690 if (!EG(active)) { in zend_call_function()
694 if (EG(exception)) { in zend_call_function()
706 orig_scope = EG(scope); in zend_call_function()
709 if (!EG(current_execute_data)) { in zend_call_function()
715 EG(current_execute_data) = &dummy_execute_data; in zend_call_function()
716 } else if (EG(current_execute_data)->func && in zend_call_function()
717 ZEND_USER_CODE(EG(current_execute_data)->func->common.type) && in zend_call_function()
718 EG(current_execute_data)->opline->opcode != ZEND_DO_FCALL && in zend_call_function()
719 EG(current_execute_data)->opline->opcode != ZEND_DO_ICALL && in zend_call_function()
720 EG(current_execute_data)->opline->opcode != ZEND_DO_UCALL && in zend_call_function()
721 EG(current_execute_data)->opline->opcode != ZEND_DO_FCALL_BY_NAME) { in zend_call_function()
723 dummy_execute_data = *EG(current_execute_data); in zend_call_function()
724 dummy_execute_data.prev_execute_data = EG(current_execute_data); in zend_call_function()
728 EG(current_execute_data) = &dummy_execute_data; in zend_call_function()
747 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
748 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
758 if (UNEXPECTED(EG(exception))) { in zend_call_function()
762 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
763 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
777 (!EG(objects_store).object_buckets || in zend_call_function()
778 !IS_OBJ_VALID(EG(objects_store).object_buckets[fci->object->handle]))) { in zend_call_function()
779 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
780 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
788 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
789 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
821 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
822 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
844 EG(scope) = calling_scope; in zend_call_function()
861 EG(scope) = func->common.scope; in zend_call_function()
864 const zend_op *current_opline_before_exception = EG(opline_before_exception); in zend_call_function()
868 EG(opline_before_exception) = current_opline_before_exception; in zend_call_function()
880 EG(scope) = func->common.scope; in zend_call_function()
882 call->prev_execute_data = EG(current_execute_data); in zend_call_function()
884 EG(current_execute_data) = call; in zend_call_function()
891 EG(current_execute_data) = call->prev_execute_data; in zend_call_function()
900 if (EG(exception)) { in zend_call_function()
914 call->prev_execute_data = EG(current_execute_data); in zend_call_function()
915 EG(current_execute_data) = call; in zend_call_function()
917 EG(current_execute_data) = call->prev_execute_data; in zend_call_function()
929 if (EG(exception)) { in zend_call_function()
935 EG(scope) = orig_scope; in zend_call_function()
938 if (EG(current_execute_data) == &dummy_execute_data) { in zend_call_function()
939 EG(current_execute_data) = dummy_execute_data.prev_execute_data; in zend_call_function()
942 if (EG(exception)) { in zend_call_function()
973 ce = zend_hash_find_ptr(EG(class_table), lc_name); in zend_lookup_class_ex()
991 if (!EG(autoload_func)) { in zend_lookup_class_ex()
992 …zend_function *func = zend_hash_str_find_ptr(EG(function_table), ZEND_AUTOLOAD_FUNC_NAME, sizeof(Z… in zend_lookup_class_ex()
994 EG(autoload_func) = func; in zend_lookup_class_ex()
1012 if (EG(in_autoload) == NULL) { in zend_lookup_class_ex()
1013 ALLOC_HASHTABLE(EG(in_autoload)); in zend_lookup_class_ex()
1014 zend_hash_init(EG(in_autoload), 8, NULL, NULL, 0); in zend_lookup_class_ex()
1017 if (zend_hash_add_empty_element(EG(in_autoload), lc_name) == NULL) { in zend_lookup_class_ex()
1033 fcall_info.function_table = EG(function_table); in zend_lookup_class_ex()
1034 ZVAL_STR_COPY(&fcall_info.function_name, EG(autoload_func)->common.function_name); in zend_lookup_class_ex()
1043 fcall_cache.function_handler = EG(autoload_func); in zend_lookup_class_ex()
1049 if ((zend_call_function(&fcall_info, &fcall_cache) == SUCCESS) && !EG(exception)) { in zend_lookup_class_ex()
1050 ce = zend_hash_find_ptr(EG(class_table), lc_name); in zend_lookup_class_ex()
1057 zend_hash_del(EG(in_autoload), lc_name); in zend_lookup_class_ex()
1133 EG(no_extensions)=1; in zend_eval_stringl()
1156 EG(no_extensions)=0; in zend_eval_stringl()
1179 if (handle_exceptions && EG(exception)) { in zend_eval_stringl_ex()
1180 zend_exception_error(EG(exception), E_ERROR); in zend_eval_stringl_ex()
1206 zend_on_timeout(EG(timeout_seconds)); in zend_timeout()
1209 …turn(E_ERROR, "Maximum execution time of %pd second%s exceeded", EG(timeout_seconds), EG(timeout_s… in zend_timeout()
1237 EG(timeout_seconds) = seconds; in zend_set_timeout()
1249 EG(timed_out) = 0; in zend_set_timeout()
1258 …if (!CreateTimerQueueTimer(&tq_timer, NULL, (WAITORTIMERCALLBACK)tq_timer_cb, (VOID*)&EG(timed_out… in zend_set_timeout()
1259 EG(timed_out) = 0; in zend_set_timeout()
1264 EG(timed_out) = 0; in zend_set_timeout()
1308 EG(timed_out) = 0; in zend_unset_timeout()
1315 EG(timed_out) = 0; in zend_unset_timeout()
1318 if (EG(timeout_seconds)) { in zend_unset_timeout()
1342 if (UNEXPECTED(!EG(scope))) { in zend_fetch_class()
1345 return EG(scope); in zend_fetch_class()
1347 if (UNEXPECTED(!EG(scope))) { in zend_fetch_class()
1351 if (UNEXPECTED(!EG(scope)->parent)) { in zend_fetch_class()
1354 return EG(scope)->parent; in zend_fetch_class()
1356 ce = zend_get_called_scope(EG(current_execute_data)); in zend_fetch_class()
1374 if (!(fetch_type & ZEND_FETCH_CLASS_SILENT) && !EG(exception)) { in zend_fetch_class()
1396 if ((fetch_type & ZEND_FETCH_CLASS_SILENT) == 0 && !EG(exception)) { in zend_fetch_class_by_name()
1472 return zend_hash_del_ind(&EG(symbol_table), name); in zend_delete_global_variable()
1482 ex = EG(current_execute_data); in zend_rebuild_symbol_table()
1493 if (EG(symtable_cache_ptr) >= EG(symtable_cache)) { in zend_rebuild_symbol_table()
1495 symbol_table = ex->symbol_table = *(EG(symtable_cache_ptr)--); in zend_rebuild_symbol_table()
1586 zend_execute_data *execute_data = EG(current_execute_data); in zend_set_local_var()
1628 zend_execute_data *execute_data = EG(current_execute_data); in zend_set_local_var_str()