Home
last modified time | relevance | path

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

123456

/PHP-5.4/Zend/
H A Dzend_execute_API.c137 EG(uninitialized_zval_ptr)=&EG(uninitialized_zval); in init_executor()
138 EG(error_zval_ptr)=&EG(error_zval); in init_executor()
146 EG(symtable_cache_ptr) = EG(symtable_cache) - 1; in init_executor()
162 EG(active_symbol_table) = &EG(symbol_table); in init_executor()
196 EG(active) = 1; in init_executor()
306 while (EG(symtable_cache_ptr)>=EG(symtable_cache)) { in shutdown_executor()
337 EG(active) = 0; in shutdown_executor()
958 if (EG(symtable_cache_ptr)>=EG(symtable_cache_limit)) { in zend_call_function()
965 *(++EG(symtable_cache_ptr)) = EG(active_symbol_table); in zend_call_function()
1775 if (EG(symtable_cache_ptr)>=EG(symtable_cache)) { in zend_rebuild_symbol_table()
[all …]
H A Dzend_execute.h178 EG(argument_stack)->end - EG(argument_stack)->top)) { \
211 p->prev = EG(argument_stack); in zend_vm_stack_extend()
212 EG(argument_stack) = p; in zend_vm_stack_extend()
217 return EG(argument_stack)->top; in zend_vm_stack_top()
235 if (UNEXPECTED(EG(argument_stack)->top == ZEND_VM_STACK_ELEMETS(EG(argument_stack)))) { in zend_vm_stack_pop()
237 EG(argument_stack) = p->prev; in zend_vm_stack_pop()
254 (zend_uintptr_t)(EG(argument_stack)->end - EG(argument_stack)->top))) { in zend_vm_stack_alloc()
268 EG(argument_stack)->top += size; in zend_vm_stack_alloc()
277 EG(argument_stack) = p->prev; in zend_vm_stack_free_int()
289 EG(argument_stack) = p->prev; in zend_vm_stack_free()
[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_vm_execute.skl13 if (EG(exception)) {
17 EG(in_execution) = 1;
34 EX(symbol_table) = EG(active_symbol_table);
36 EG(current_execute_data) = execute_data;
46 if (op_array->this_var != -1 && EG(This)) {
47 Z_ADDREF_P(EG(This)); /* For $this pointer */
48 if (!EG(active_symbol_table)) {
50 *EX_CV(op_array->this_var) = EG(This);
53 Z_DELREF_P(EG(This));
59 EG(opline_ptr) = &EX(opline);
[all …]
H A Dzend.c482 memset(EG(exception_op), 0, sizeof(EG(exception_op))); in zend_init_exception_op()
565 EG(lambda_count) = 0; in executor_globals_ctor()
568 EG(in_execution) = 0; in executor_globals_ctor()
569 EG(in_autoload) = NULL; in executor_globals_ctor()
572 EG(exit_status) = 0; in executor_globals_ctor()
574 EG(saved_fpu_cw) = 0; in executor_globals_ctor()
577 EG(active) = 0; in executor_globals_ctor()
817 if (EG(active)) in zend_shutdown()
879 if (!EG(bailout)) { in BEGIN_EXTERN_C()
940 EG(opline_ptr) = NULL; in zend_deactivate()
[all …]
H A Dzend_objects_API.c112 if (EG(objects_store).free_list_head != -1) { in zend_objects_store_put()
113 handle = EG(objects_store).free_list_head; in zend_objects_store_put()
114 EG(objects_store).free_list_head = EG(objects_store).object_buckets[handle].bucket.free_list.next; in zend_objects_store_put()
116 if (EG(objects_store).top == EG(objects_store).size) { in zend_objects_store_put()
117 EG(objects_store).size <<= 1; in zend_objects_store_put()
118EG(objects_store).object_buckets = (zend_object_store_bucket *) erealloc(EG(objects_store).object_… in zend_objects_store_put()
120 handle = EG(objects_store).top++; in zend_objects_store_put()
124 EG(objects_store).object_buckets[handle].valid = 1; in zend_objects_store_put()
167EG(objects_store).object_buckets[handle].bucket.free_list.next = EG(objects_store).free_list_head;…
169 EG(objects_store).object_buckets[handle].valid = 0;
[all …]
H A Dzend_execute.c208 *ptr = (zval**)EG(current_execute_data)->CVs + (EG(active_op_array)->last_var + var); in _get_zval_cv_lookup()
260 *ptr = (zval**)EG(current_execute_data)->CVs + (EG(active_op_array)->last_var + var); in _get_zval_cv_lookup_BP_VAR_RW()
277 *ptr = (zval**)EG(current_execute_data)->CVs + (EG(active_op_array)->last_var + var); in _get_zval_cv_lookup_BP_VAR_W()
463 return EG(This); in _get_obj_zval_ptr_unused()
477 return &EG(This); in _get_obj_zval_ptr_ptr()
488 return &EG(This); in _get_obj_zval_ptr_ptr_unused()
500 return EG(This); in _get_obj_zval_ptr()
513 if (variable_ptr == &EG(error_zval) || value_ptr == &EG(error_zval)) { in zend_assign_to_variable_reference()
980 return &EG(symbol_table); in zend_get_target_symbol_table()
1082 &EG(error_zval_ptr) : &EG(uninitialized_zval_ptr); in zend_fetch_dimension_address_inner()
[all …]
H A Dzend_objects.c74 if (object->ce != EG(scope)) { in zend_objects_destroy_object()
77 zend_error(EG(in_execution) ? E_ERROR : E_WARNING, in zend_objects_destroy_object()
80 EG(scope) ? EG(scope)->name : "", in zend_objects_destroy_object()
90 zend_error(EG(in_execution) ? E_ERROR : E_WARNING, in zend_objects_destroy_object()
93 EG(scope) ? EG(scope)->name : "", in zend_objects_destroy_object()
115 if (EG(exception)) { in zend_objects_destroy_object()
116 if (Z_OBJ_HANDLE_P(EG(exception)) == handle) { in zend_objects_destroy_object()
119 old_exception = EG(exception); in zend_objects_destroy_object()
120 EG(exception) = NULL; in zend_objects_destroy_object()
125 if (EG(exception)) { in zend_objects_destroy_object()
[all …]
H A Dzend_gc.c198 EG(objects_store).object_buckets == NULL)) { in gc_zobj_possible_root()
313 if (Z_ARRVAL_P(pz) != &EG(symbol_table)) { in zval_scan_black()
418 if (Z_ARRVAL_P(pz) == &EG(symbol_table)) { in zval_mark_grey()
484 if (EG(objects_store).object_buckets) { in gc_mark_roots()
556 if (Z_ARRVAL_P(pz) == &EG(symbol_table)) { in zval_scan()
580 if (EG(objects_store).object_buckets) { in zobj_scan()
714 if (EG(objects_store).object_buckets) { in zobj_collect_white()
760 if (EG(objects_store).object_buckets) { in gc_collect_roots()
808 if (EG(objects_store).object_buckets && in gc_collect_cycles()
809 EG(objects_store).object_buckets[Z_OBJ_HANDLE(p->z)].valid && in gc_collect_cycles()
[all …]
H A Dzend_constants.c163 zend_hash_destroy(EG(zend_constants)); in zend_shutdown_constants()
164 free(EG(zend_constants)); in zend_shutdown_constants()
171 if (EG(full_tables_cleanup)) { in clean_non_persistent_constants()
232 if (!EG(in_execution)) { in zend_get_special_constant()
239 if (EG(scope) && EG(scope)->name) { in zend_get_special_constant()
247 …zend_str_tolower_copy(const_name + sizeof("\0__CLASS__")-1, EG(scope)->name, EG(scope)->name_lengt… in zend_get_special_constant()
251 Z_STRVAL((**c).value) = estrndup(EG(scope)->name, EG(scope)->name_length); in zend_get_special_constant()
341 if (EG(in_execution)) { in zend_get_constant_ex()
342 scope = EG(scope); in zend_get_constant_ex()
369 if (EG(called_scope)) { in zend_get_constant_ex()
[all …]
H A Dzend_ini.c94 EG(modified_ini_directives) = NULL; in zend_ini_startup()
95 EG(error_reporting_ini_entry) = NULL; in zend_ini_startup()
105 zend_hash_destroy(EG(ini_directives)); in zend_ini_shutdown()
106 free(EG(ini_directives)); in zend_ini_shutdown()
121 if (EG(modified_ini_directives)) { in zend_ini_deactivate()
125 EG(modified_ini_directives) = NULL; in zend_ini_deactivate()
136 EG(modified_ini_directives) = NULL; in zend_copy_ini_directives()
137 EG(error_reporting_ini_entry) = NULL; in zend_copy_ini_directives()
195 directives = EG(ini_directives); in zend_register_ini_entries()
279 if (!EG(modified_ini_directives)) { in zend_alter_ini_entry_ex()
[all …]
H A Dzend_exceptions.c62 zend_exception_set_previous(EG(exception), EG(prev_exception) TSRMLS_CC); in zend_exception_save()
64 if (EG(exception)) { in zend_exception_save()
65 EG(prev_exception) = EG(exception); in zend_exception_save()
67 EG(exception) = NULL; in zend_exception_save()
74 if (EG(exception)) { in zend_exception_restore()
77 EG(exception) = EG(prev_exception); in zend_exception_restore()
109 if(EG(exception)) { in zend_throw_exception_internal()
124 EG(opline_before_exception) = EG(current_execute_data)->opline; in zend_throw_exception_internal()
125 EG(current_execute_data)->opline = EG(exception_op); in zend_throw_exception_internal()
135 if (!EG(exception)) { in zend_clear_exception()
[all …]
H A Dzend_vm_def.h2117 EG(exception) = NULL;
2315 if (EG(This) &&
2504 EG(opline_ptr) = NULL; in ZEND_VM_HELPER()
2565 if (EG(symtable_cache_ptr)>=EG(symtable_cache_limit)) { in ZEND_VM_HELPER()
2572 *(++EG(symtable_cache_ptr)) = EG(active_symbol_table); in ZEND_VM_HELPER()
2580 if (EG(This)) { in ZEND_VM_HELPER()
2722 if (EG(symtable_cache_ptr)>=EG(symtable_cache_limit)) { in ZEND_VM_HELPER()
2729 *(++EG(symtable_cache_ptr)) = EG(active_symbol_table); in ZEND_VM_HELPER()
2763 if (EG(This)) { in ZEND_VM_HELPER()
3533 EG(scope) = ce;
[all …]
H A Dzend_builtin_functions.c760 if (EG(scope)) { in ZEND_FUNCTION()
761 RETURN_STRINGL(EG(scope)->name, EG(scope)->name_length, 1); in ZEND_FUNCTION()
783 if (EG(called_scope)) { in ZEND_FUNCTION()
784 RETURN_STRINGL(EG(called_scope)->name, EG(called_scope)->name_length, 1); in ZEND_FUNCTION()
785 } else if (!EG(scope)) { in ZEND_FUNCTION()
807 ce = EG(scope); in ZEND_FUNCTION()
1071 || (EG(scope) && in ZEND_FUNCTION()
1549 zend_ptr_stack_push(&EG(user_error_handlers), EG(user_error_handler)); in ZEND_FUNCTION()
1587 EG(user_error_handler) = zend_ptr_stack_pop(&EG(user_error_handlers)); in ZEND_FUNCTION()
1620 zend_ptr_stack_push(&EG(user_exception_handlers), EG(user_exception_handler)); in ZEND_FUNCTION()
[all …]
H A Dzend_object_handlers.c245 if ((ce==EG(scope) || property_info->ce == EG(scope)) && EG(scope)) { in zend_verify_property_access()
320 if (EG(scope) != ce in zend_get_property_info_quick()
321 && EG(scope) in zend_get_property_info_quick()
346 EG(std_property_info).h = h; in zend_get_property_info_quick()
347 EG(std_property_info).ce = ce; in zend_get_property_info_quick()
937 if (ce == EG(scope)) { in zend_check_private_int()
1053 if (EG(scope) && in zend_std_get_method()
1181 EG(This) && in zend_std_get_static_method()
1312 if (EG(scope)) { in zend_std_get_constructor()
1324 if (EG(scope)) { in zend_std_get_constructor()
[all …]
H A Dzend_list.c44 index = zend_hash_next_free_element(&EG(regular_list)); in zend_list_insert()
46 zend_hash_index_update(&EG(regular_list), index, (void *) &le, sizeof(zend_rsrc_list_entry), NULL); in zend_list_insert()
54 if (zend_hash_index_find(&EG(regular_list), id, (void **) &le)==SUCCESS) { in _zend_list_delete()
57 return zend_hash_index_del(&EG(regular_list), id); in _zend_list_delete()
71 if (zend_hash_index_find(&EG(regular_list), id, (void **) &le)==SUCCESS) { in _zend_list_find()
84 if (zend_hash_index_find(&EG(regular_list), id, (void **) &le)==SUCCESS) { in _zend_list_addref()
222 if (zend_hash_init(&EG(regular_list), 0, NULL, list_entry_destructor, 0)==SUCCESS) { in zend_init_rsrc_list()
223 EG(regular_list).nNextFreeElement=1; /* we don't want resource id 0 */ in zend_init_rsrc_list()
233 return zend_hash_init_ex(&EG(persistent_list), 0, NULL, plist_entry_destructor, 1, 0); in zend_init_rsrc_plist()
255 …zend_hash_apply_with_argument(&EG(persistent_list), (apply_func_arg_t) clean_module_resource, (voi… in zend_clean_module_rsrc_dtors_cb()
H A Dzend_variables.c42 if (zvalue->value.ht && (zvalue->value.ht != &EG(symbol_table))) { in _zval_dtor_func()
133 if (zvalue->value.ht == &EG(symbol_table)) { in _zval_copy_ctor_func()
202 if (!EG(active_symbol_table)) { in zval_copy_static_var()
205 …if (zend_hash_quick_find(EG(active_symbol_table), key->arKey, key->nKeyLength, key->h, (void **) &… in zval_copy_static_var()
209 …zend_hash_quick_add(EG(active_symbol_table), key->arKey, key->nKeyLength, key->h, &tmp, sizeof(zva… in zval_copy_static_var()
211 tmp = EG(uninitialized_zval_ptr); in zval_copy_static_var()
H A Dzend_vm_execute.h523 if (EG(symtable_cache_ptr)>=EG(symtable_cache_limit)) { in zend_leave_helper_SPEC()
530 *(++EG(symtable_cache_ptr)) = EG(active_symbol_table); in zend_leave_helper_SPEC()
538 if (EG(This)) { in zend_leave_helper_SPEC()
680 if (EG(symtable_cache_ptr)>=EG(symtable_cache_limit)) { in zend_do_fcall_common_helper_SPEC()
687 *(++EG(symtable_cache_ptr)) = EG(active_symbol_table); in zend_do_fcall_common_helper_SPEC()
721 if (EG(This)) { in zend_do_fcall_common_helper_SPEC()
3514 if (EG(This) && in ZEND_INIT_STATIC_METHOD_CALL_SPEC_CONST_CONST_HANDLER()
4322 if (EG(This) && in ZEND_INIT_STATIC_METHOD_CALL_SPEC_CONST_TMP_HANDLER()
4998 if (EG(This) && in ZEND_INIT_STATIC_METHOD_CALL_SPEC_CONST_VAR_HANDLER()
5561 if (EG(This) && in ZEND_INIT_STATIC_METHOD_CALL_SPEC_CONST_UNUSED_HANDLER()
[all …]
H A Dzend_dtrace.c29 if (EG(current_execute_data) && EG(current_execute_data)->op_array) { in dtrace_get_executed_filename()
30 return EG(current_execute_data)->op_array->filename; in dtrace_get_executed_filename()
H A Dzend_API.c1016 EG(scope) = old_scope; in zend_merge_properties()
2620 if (!EG(scope)) { in zend_is_callable_check_class()
2632 if (!EG(scope)) { in zend_is_callable_check_class()
2734 EG(scope) = ce_org; in zend_is_callable_check_func()
3642 EG(scope) = scope; in zend_update_property()
3657 EG(scope) = old_scope; in zend_update_property()
3738 EG(scope) = scope; in zend_update_static_property()
3740 EG(scope) = old_scope; in zend_update_static_property()
3847 EG(scope) = scope; in zend_read_property()
3862 EG(scope) = old_scope; in zend_read_property()
[all …]
H A Dzend_globals_macros.h45 # define EG(v) TSRMG(executor_globals_id, zend_executor_globals *, v) macro
47 # define EG(v) (executor_globals.v) macro
H A Dzend_interfaces.c61 fci.function_table = !object_pp ? EG(function_table) : NULL; in zend_call_method()
73 function_table = EG(function_table); in zend_call_method()
90 !(EG(called_scope) && in zend_call_method()
91 instanceof_function(EG(called_scope), obj_ce TSRMLS_CC))) { in zend_call_method()
94 fcic.called_scope = EG(called_scope); in zend_call_method()
104 if (!EG(exception)) { in zend_call_method()
208 if (!EG(exception)) in zend_user_it_get_current_key()
304 if (!EG(exception)) { in zend_user_it_get_new_iterator()
435 if (!retval || EG(exception)) { in zend_user_serialize()
455 if (result == FAILURE && !EG(exception)) { in zend_user_serialize()
[all …]
/PHP-5.4/ext/spl/
H A Dphp_spl.c290 EG(return_value_ptr_ptr) = &result; in spl_autoload()
291 EG(active_op_array) = new_op_array; in spl_autoload()
292 if (!EG(active_symbol_table)) { in spl_autoload()
300 if (!EG(exception)) { in spl_autoload()
301 if (EG(return_value_ptr_ptr)) { in spl_autoload()
337 EG(opline_ptr) = original_opline_ptr; in PHP_FUNCTION()
353 EG(opline_ptr) = original_opline_ptr; in PHP_FUNCTION()
675 EG(autoload_func) = NULL; in PHP_FUNCTION()
694 EG(autoload_func) = NULL; in PHP_FUNCTION()
714 if (!EG(autoload_func)) { in PHP_FUNCTION()
[all …]
/PHP-5.4/main/
H A Dmain.c166 EG(precision) = i; in PHP_INI_MH()
857 (!EG(user_error_handler) || !(EG(user_error_handler_error_reporting) & type))) { in php_verror()
1018 if (EG(error_handling) == EH_THROW && !EG(exception)) { in php_error_cb()
1151 EG(exit_status) = 255; in php_error_cb()
1738 EG(opline_ptr) = NULL; in php_request_shutdown()
1739 EG(active_op_array) = NULL; in php_request_shutdown()
2064 EG(bailout) = NULL; in php_module_startup()
2081 EG(exception) = NULL; in php_module_startup()
2427 EG(exit_status) = 0; in php_execute_script()
2528 EG(exit_status) = 0; in php_execute_simple_script()
[all …]
/PHP-5.4/ext/standard/
H A Dincomplete_class.c62 return EG(error_zval_ptr); in incomplete_class_get_property()
64 return EG(uninitialized_zval_ptr); in incomplete_class_get_property()
78 return &EG(error_zval_ptr); in incomplete_class_get_property_ptr_ptr()

Completed in 399 milliseconds

123456