Home
last modified time | relevance | path

Searched refs:EG (Results 1 – 25 of 156) sorted by relevance

1234567

/PHP-7.0/Zend/
H A Dzend_execute_API.c139 EG(symtable_cache_ptr) = EG(symtable_cache) - 1; in init_executor()
173 EG(timed_out) = 0; in init_executor()
179 EG(scope) = NULL; 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()
374 while (EG(symtable_cache_ptr)>=EG(symtable_cache)) { in shutdown_executor()
407 if (EG(ht_iterators) != EG(ht_iterators_slots)) { in shutdown_executor()
411 EG(active) = 0; in shutdown_executor()
570 if (EG(scope) && EG(scope)->name) { in zval_update_constant_ex()
[all …]
H A Dzend_float.c30 if (!EG(saved_fpu_cw_ptr)) { in zend_init_fpu()
31 EG(saved_fpu_cw_ptr) = (void*)&EG(saved_fpu_cw); in zend_init_fpu()
33 XPFPA_STORE_CW(EG(saved_fpu_cw_ptr)); in zend_init_fpu()
36 EG(saved_fpu_cw_ptr) = NULL; in zend_init_fpu()
44 if (EG(saved_fpu_cw_ptr)) { in zend_shutdown_fpu()
45 XPFPA_RESTORE_CW(EG(saved_fpu_cw_ptr)); in zend_shutdown_fpu()
48 EG(saved_fpu_cw_ptr) = NULL; in zend_shutdown_fpu()
H A Dzend_objects_API.c114 if (EG(objects_store).free_list_head != -1) { in zend_objects_store_put()
115 handle = EG(objects_store).free_list_head; in zend_objects_store_put()
116EG(objects_store).free_list_head = GET_OBJ_BUCKET_NUMBER(EG(objects_store).object_buckets[handle]); in zend_objects_store_put()
118 if (EG(objects_store).top == EG(objects_store).size) { in zend_objects_store_put()
119 EG(objects_store).size <<= 1; in zend_objects_store_put()
120EG(objects_store).object_buckets = (zend_object **) erealloc(EG(objects_store).object_buckets, EG(… in zend_objects_store_put()
122 handle = EG(objects_store).top++; in zend_objects_store_put()
125 EG(objects_store).object_buckets[handle] = object; in zend_objects_store_put()
129 …SET_OBJ_BUCKET_NUMBER(EG(objects_store).object_buckets[handle], EG(objects_store).free_list_head);…
130 EG(objects_store).free_list_head = handle;
[all …]
H A Dzend_objects.c94 if (object->ce != EG(scope)) { in zend_objects_destroy_object()
101 EG(scope) ? ZSTR_VAL(EG(scope)->name) : ""); in zend_objects_destroy_object()
106 EG(scope) ? ZSTR_VAL(EG(scope)->name) : ""); in zend_objects_destroy_object()
120 EG(scope) ? ZSTR_VAL(EG(scope)->name) : ""); in zend_objects_destroy_object()
125 EG(scope) ? ZSTR_VAL(EG(scope)->name) : ""); in zend_objects_destroy_object()
140 if (EG(exception)) { in zend_objects_destroy_object()
141 if (EG(exception) == object) { in zend_objects_destroy_object()
144 old_exception = EG(exception); in zend_objects_destroy_object()
145 EG(exception) = NULL; in zend_objects_destroy_object()
150 if (EG(exception)) { in zend_objects_destroy_object()
[all …]
H A Dzend.c423 memset(EG(exception_op), 0, sizeof(EG(exception_op))); in zend_init_exception_op()
444 memset(&EG(call_trampoline_op), 0, sizeof(EG(call_trampoline_op))); in zend_init_call_trampoline_op()
831 if (EG(active)) in zend_shutdown()
901 if (EG(exception)) { in zenderror()
914 if (!EG(bailout)) { in BEGIN_EXTERN_C()
1073 if (EG(exception)) { in zend_error()
1094 EG(exception) = NULL; in zend_error()
1401 if (EG(exception)) { in zend_try_exception_handler()
1407 EG(exception) = NULL; in zend_try_exception_handler()
1413 if (EG(exception)) { in zend_try_exception_handler()
[all …]
H A Dzend_vm_execute.skl27 if (EG(exception) != NULL) {
32 …(zend_function*)op_array, 0, zend_get_called_scope(EG(current_execute_data)), zend_get_this_object…
33 if (EG(current_execute_data)) {
36 execute_data->symbol_table = &EG(symbol_table);
38 EX(prev_execute_data) = EG(current_execute_data);
H A Dzend_generators.c49 EG(vm_stack) = generator->stack; in zend_generator_cleanup_unfinished_execution()
53 generator->stack = EG(vm_stack); in zend_generator_cleanup_unfinished_execution()
57 EG(vm_stack) = original_stack; in zend_generator_cleanup_unfinished_execution()
161 EG(exception) = NULL; in zend_generator_dtor_storage()
255 generator->stack = EG(vm_stack); in zend_generator_create_zval()
259 EG(vm_stack) = current_stack; in zend_generator_create_zval()
635 EG(current_execute_data) = ex; in zend_generator_get_next_delegated_value()
688 EG(vm_stack) = generator->stack; in zend_generator_resume()
715 EG(scope) = original_scope; in zend_generator_resume()
718 EG(vm_stack) = original_stack; in zend_generator_resume()
[all …]
H A Dzend_ini.c110 EG(modified_ini_directives) = NULL; in zend_ini_startup()
111 EG(error_reporting_ini_entry) = NULL; in zend_ini_startup()
119 zend_ini_dtor(EG(ini_directives)); in zend_ini_shutdown()
141 if (EG(modified_ini_directives)) { in zend_ini_deactivate()
145 EG(modified_ini_directives) = NULL; in zend_ini_deactivate()
173 EG(modified_ini_directives) = NULL; in zend_copy_ini_directives()
174 EG(error_reporting_ini_entry) = NULL; in zend_copy_ini_directives()
227 if (directives != EG(ini_directives)) { in zend_register_ini_entries()
228 directives = EG(ini_directives); in zend_register_ini_entries()
354 if (!EG(modified_ini_directives)) { in zend_alter_ini_entry_ex()
[all …]
H A Dzend_constants.c107 EG(zend_constants) = (HashTable *) malloc(sizeof(HashTable)); in zend_startup_constants()
109 zend_hash_init(EG(zend_constants), 128, NULL, ZEND_CONSTANT_DTOR, 1); in zend_startup_constants()
150 zend_hash_destroy(EG(zend_constants)); in zend_shutdown_constants()
151 free(EG(zend_constants)); in zend_shutdown_constants()
158 if (EG(full_tables_cleanup)) { in clean_non_persistent_constants()
233 if (!EG(current_execute_data)) { in zend_get_special_constant()
246 c = zend_hash_find_ptr(EG(zend_constants), haltname); in zend_get_special_constant()
281 if ((c = zend_hash_find_ptr(EG(zend_constants), name)) == NULL) { in zend_get_constant()
321 if (EG(current_execute_data)) { in zend_get_constant_ex()
322 scope = EG(scope); in zend_get_constant_ex()
[all …]
H A Dzend_exceptions.c110 zend_exception_set_previous(EG(exception), EG(prev_exception)); in zend_exception_save()
112 if (EG(exception)) { in zend_exception_save()
113 EG(prev_exception) = EG(exception); in zend_exception_save()
115 EG(exception) = NULL; in zend_exception_save()
122 if (EG(exception)) { in zend_exception_restore()
123 zend_exception_set_previous(EG(exception), EG(prev_exception)); in zend_exception_restore()
125 EG(exception) = EG(prev_exception); in zend_exception_restore()
156 if(EG(exception)) { in zend_throw_exception_internal()
172 EG(opline_before_exception) = EG(current_execute_data)->opline; in zend_throw_exception_internal()
173 EG(current_execute_data)->opline = EG(exception_op); in zend_throw_exception_internal()
[all …]
H A Dzend_builtin_functions.c536 q = &EG(uninitialized_zval); in ZEND_FUNCTION()
552 q = &EG(uninitialized_zval); in ZEND_FUNCTION()
931 if (EG(scope)) { in ZEND_FUNCTION()
932 RETURN_STR_COPY(EG(scope)->name); in ZEND_FUNCTION()
956 } else if (!EG(scope)) { in ZEND_FUNCTION()
975 ce = EG(scope); in ZEND_FUNCTION()
1078 ce != EG(scope) && in add_class_vars()
1079 prop_info->ce != EG(scope))) { in add_class_vars()
1262 || (EG(scope) && in ZEND_FUNCTION()
1701 zend_stack_push(&EG(user_error_handlers), &EG(user_error_handler)); in ZEND_FUNCTION()
[all …]
H A Dzend_object_handlers.c267 return (ce == EG(scope) || property_info->ce == EG(scope)); in zend_verify_property_access()
340 if (EG(scope) != ce in zend_get_property_offset()
341 && EG(scope) in zend_get_property_offset()
417 if (EG(scope) != ce in zend_get_property_info()
418 && EG(scope) in zend_get_property_info()
625 retval = &EG(uninitialized_zval); in zend_std_read_property()
1035 if (ce == EG(scope)) { in zend_check_private_int()
1189 if (EG(scope) && in zend_std_get_method()
1384 if (EG(scope)) { in zend_std_get_constructor()
1398 if (EG(scope)) { in zend_std_get_constructor()
[all …]
H A Dzend_execute.h164 …K_GLOBAL ZEND_ASSERT(EG(vm_stack_top) > (zval *) EG(vm_stack) && EG(vm_stack_end) > (zval *) EG(vm…
176 zend_execute_data *call = (zend_execute_data*)EG(vm_stack_top); in zend_vm_stack_push_call_frame_ex()
180 if (UNEXPECTED(used_stack > (size_t)(((char*)EG(vm_stack_end)) - (char*)call))) { in zend_vm_stack_push_call_frame_ex()
184 EG(vm_stack_top) = (zval*)((char*)call + used_stack); in zend_vm_stack_push_call_frame_ex()
266 zend_vm_stack p = EG(vm_stack); in zend_vm_stack_free_call_frame_ex()
270 EG(vm_stack_top) = prev->top; in zend_vm_stack_free_call_frame_ex()
271 EG(vm_stack_end) = prev->end; in zend_vm_stack_free_call_frame_ex()
272 EG(vm_stack) = prev; in zend_vm_stack_free_call_frame_ex()
276 EG(vm_stack_top) = (zval*)call; in zend_vm_stack_free_call_frame_ex()
H A Dzend_execute.c163 EG(vm_stack)->top++; in zend_vm_stack_init()
164 EG(vm_stack_top) = EG(vm_stack)->top; in zend_vm_stack_init()
165 EG(vm_stack_end) = EG(vm_stack)->end; in zend_vm_stack_init()
184 stack = EG(vm_stack); in zend_vm_stack_extend()
1527 ht = &EG(symbol_table); in zend_get_target_symbol_table()
1649 &EG(error_zval) : &EG(uninitialized_zval); in zend_fetch_dimension_address_inner()
2051 if (EG(symtable_cache_ptr) >= EG(symtable_cache_limit)) { in zend_clean_and_cache_symbol_table()
2089 if (EG(timed_out)) { \
2334 EG(vm_stack_top) = EG(vm_stack)->top; in zend_create_generator_execute_data()
2335 EG(vm_stack_end) = EG(vm_stack)->end; in zend_create_generator_execute_data()
[all …]
H A Dzend_vm_def.h3627 EG(scope) = NULL;
3653 EG(scope) = NULL;
4214 ce = EG(exception)->ce;
4244 EG(exception) = NULL;
4527 if (!EG(exception)) {
5153 EG(scope) = ce;
5835 if (!EG(exception)) {
5990 if (!EG(exception)) {
7028 EG(ticks_count) = 0;
7207 EG(exception) = NULL;
[all …]
H A Dzend_list.c39 index = zend_hash_next_free_element(&EG(regular_list)); in zend_list_insert()
44 return zend_hash_index_add_new(&EG(regular_list), index, &zv); in zend_list_insert()
50 return zend_hash_index_del(&EG(regular_list), res->handle); in zend_list_delete()
59 return zend_hash_index_del(&EG(regular_list), res->handle); in zend_list_free()
213 zend_hash_init(&EG(regular_list), 8, NULL, list_entry_destructor, 0); in zend_init_rsrc_list()
220 zend_hash_init_ex(&EG(persistent_list), 8, NULL, plist_entry_destructor, 1, 0); in zend_init_rsrc_plist()
263 …zend_hash_apply_with_argument(&EG(persistent_list), clean_module_resource, (void *) &(ld->resource… in zend_clean_module_rsrc_dtors_cb()
H A Dzend_API.c1083 EG(scope) = old_scope; in zend_merge_properties()
2840 if (!EG(scope)) { in zend_is_callable_check_class()
2851 if (!EG(scope)) { in zend_is_callable_check_class()
2984 EG(scope) = ce_org; in zend_is_callable_check_func()
3816 EG(scope) = scope; in zend_update_property_ex()
3824 EG(scope) = old_scope; in zend_update_property_ex()
3833 EG(scope) = scope; in zend_update_property()
3860 EG(scope) = scope; in zend_unset_property()
3935 EG(scope) = scope; in zend_update_static_property()
4029 EG(scope) = scope; in zend_read_property()
[all …]
/PHP-7.0/sapi/phpdbg/
H A Dphpdbg_prompt.c536 if (EG(exception)) { in phpdbg_compile_stdin()
632 if (EG(exception)) { in phpdbg_compile()
779 EG(exception) = NULL; in phpdbg_handle_exception()
786 if (EG(exception)) { in phpdbg_handle_exception()
787 EG(exception) = NULL; in phpdbg_handle_exception()
807 EG(exit_status) = 255; in phpdbg_handle_exception()
970 if (EG(exception)) { in PHPDBG_COMMAND()
1034 if (EG(exception)) { in PHPDBG_COMMAND()
1035 ex = EG(exception); in PHPDBG_COMMAND()
1059 EG(exit_status) = 0; in PHPDBG_COMMAND()
[all …]
H A Dphpdbg_print.c44 if (PHPDBG_G(in_execution) && EG(current_execute_data)) { in PHPDBG_PRINT()
126 if (PHPDBG_G(in_execution) && EG(current_execute_data)) { in PHPDBG_PRINT()
213 HashTable *func_table = EG(function_table); in PHPDBG_PRINT()
220 if (EG(scope)) { in PHPDBG_PRINT()
224 func_table = &EG(scope)->function_table; in PHPDBG_PRINT()
229 } else if (!EG(function_table)) { in PHPDBG_PRINT()
233 func_table = EG(function_table); in PHPDBG_PRINT()
270 ZEND_HASH_FOREACH_STR_KEY_PTR(EG(class_table), rt_name, func) { in phpdbg_print_opcodes_function()
306 ZEND_HASH_FOREACH_STR_KEY_PTR(EG(class_table), rt_name, ce) { in phpdbg_print_opcodes_method()
364 ZEND_HASH_FOREACH_STR_KEY_PTR(EG(class_table), rt_name, ce) { in phpdbg_print_opcodes_class()
[all …]
H A Dphpdbg_info.c67 …phpdbg_notice("includedfilecount", "num=\"%d\"", "Included files: %d", zend_hash_num_elements(&EG(… in PHPDBG_INFO()
74 ZEND_HASH_FOREACH_STR_KEY(&EG(included_files), fname) { in PHPDBG_INFO()
105 if (EG(zend_constants)) { in PHPDBG_INFO()
107 ZEND_HASH_FOREACH_PTR(EG(zend_constants), data) { in PHPDBG_INFO()
182 if (!EG(current_execute_data) || !EG(current_execute_data)->func) { in phpdbg_print_symbols()
190 symtable = &EG(symbol_table); in phpdbg_print_symbols()
211 zend_op_array *ops = &EG(current_execute_data)->func->op_array; in phpdbg_print_symbols()
309 …zend_bool in_executor = PHPDBG_G(in_execution) && EG(current_execute_data) && EG(current_execute_d… in PHPDBG_INFO()
311 zend_op_array *ops = in_executor ? &EG(current_execute_data)->func->op_array : PHPDBG_G(ops); in PHPDBG_INFO()
392 ZEND_HASH_FOREACH_PTR(EG(class_table), ce) { in PHPDBG_INFO()
[all …]
H A Dphpdbg_frame.c38 EG(current_execute_data) = PHPDBG_FRAME(execute_data); in ZEND_EXTERN_MODULE_GLOBALS()
40 EG(scope) = PHPDBG_EX(func)->op_array.scope; in ZEND_EXTERN_MODULE_GLOBALS()
45 …zend_execute_data *execute_data = PHPDBG_FRAME(num)?PHPDBG_FRAME(execute_data):EG(current_execute_… in phpdbg_switch_frame()
79 PHPDBG_FRAME(execute_data) = EG(current_execute_data); in phpdbg_switch_frame()
80 EG(current_execute_data) = execute_data; in phpdbg_switch_frame()
82 EG(scope) = PHPDBG_EX(func)->op_array.scope; in phpdbg_switch_frame()
H A Dphpdbg_webdata_transfer.c46 zend_hash_copy(Z_ARRVAL(zv[1]), &EG(symbol_table), NULL); in phpdbg_webdata_compress()
125 ZEND_HASH_FOREACH_PTR(EG(ini_directives), ini_entry) { in phpdbg_webdata_compress()
146 if (EG(modified_ini_directives)) { in phpdbg_webdata_compress()
150 ZEND_HASH_FOREACH_PTR(EG(ini_directives), ini_entry) { in phpdbg_webdata_compress()
/PHP-7.0/ext/opcache/
H A DZendAccelerator.c729 er = EG(error_reporting); in zend_get_stream_timestamp()
730 EG(error_reporting) = 0; in zend_get_stream_timestamp()
736 EG(error_reporting) = er; in zend_get_stream_timestamp()
863 er = EG(error_reporting); in zend_get_file_handle_timestamp()
864 EG(error_reporting) = 0; in zend_get_file_handle_timestamp()
1628 if (!EG(current_execute_data) || !EG(current_execute_data)->opline || in file_cache_compile_file()
1903 if (!EG(current_execute_data) || !EG(current_execute_data)->opline || in persistent_compile_file()
2275 if (EG(objects_store).top > 1 || zend_hash_num_elements(&EG(regular_list)) > 0) { in zend_accel_fast_shutdown()
2376 EG(function_table)->nNumUsed = EG(function_table)->nNumOfElements; in zend_accel_fast_shutdown()
2377 EG(class_table)->nNumUsed = EG(class_table)->nNumOfElements; in zend_accel_fast_shutdown()
[all …]
/PHP-7.0/main/
H A Dmain.c162 EG(precision) = i; in PHP_INI_MH()
906 if (EG(current_execute_data)) { in php_verror()
1065 if (EG(error_handling) == EH_THROW && !EG(exception)) { in php_error_cb()
1188 EG(exit_status) = 255; in php_error_cb()
2249 EG(current_module) = module; in php_module_startup()
2251 EG(current_module) = NULL; in php_module_startup()
2434 EG(exit_status) = 0; in php_execute_script()
2520 if (EG(exception)) { in php_execute_script()
2548 EG(exit_status) = 0; in php_execute_simple_script()
2574 return EG(exit_status); in php_execute_simple_script()
[all …]
/PHP-7.0/ext/spl/
H A Dphp_spl.c72 ce = zend_hash_find_ptr(EG(class_table), lc_name); in spl_find_ce_by_name()
294 if (!EG(exception)) { in spl_autoload()
328 while (pos && *pos && !EG(exception)) { in PHP_FUNCTION()
428 if (zend_hash_exists(EG(class_table), lc_name)) { in PHP_FUNCTION()
618EG(autoload_func) = zend_hash_str_find_ptr(EG(function_table), "spl_autoload_call", sizeof("spl_au… in PHP_FUNCTION()
620EG(autoload_func) = zend_hash_str_find_ptr(EG(function_table), "spl_autoload", sizeof("spl_autoloa… in PHP_FUNCTION()
682 EG(autoload_func) = NULL; in PHP_FUNCTION()
701 if (EG(autoload_func) == spl_func_ptr) { in PHP_FUNCTION()
703 EG(autoload_func) = NULL; in PHP_FUNCTION()
722 if (!EG(autoload_func)) { in PHP_FUNCTION()
[all …]

Completed in 559 milliseconds

1234567