/PHP-5.3/Zend/ |
H A D | zend_float.c | 30 if (!EG(saved_fpu_cw)) { in zend_init_fpu() 31 EG(saved_fpu_cw) = emalloc(sizeof(XPFPA_CW_DATATYPE)); in zend_init_fpu() 33 XPFPA_STORE_CW(EG(saved_fpu_cw)); in zend_init_fpu() 36 if (EG(saved_fpu_cw)) { in zend_init_fpu() 37 efree(EG(saved_fpu_cw)); in zend_init_fpu() 39 EG(saved_fpu_cw) = NULL; in zend_init_fpu() 47 if (EG(saved_fpu_cw)) { in zend_shutdown_fpu() 48 XPFPA_RESTORE_CW(EG(saved_fpu_cw)); in zend_shutdown_fpu() 51 if (EG(saved_fpu_cw)) { in zend_shutdown_fpu() 52 efree(EG(saved_fpu_cw)); in zend_shutdown_fpu() [all …]
|
H A D | zend_execute_API.c | 137 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() 172 EG(active_symbol_table) = &EG(symbol_table); in init_executor() 206 EG(active) = 1; in init_executor() 313 while (EG(symtable_cache_ptr)>=EG(symtable_cache)) { in shutdown_executor() 344 EG(active) = 0; in shutdown_executor() 969 if (EG(symtable_cache_ptr)>=EG(symtable_cache_limit)) { in zend_call_function() 976 *(++EG(symtable_cache_ptr)) = EG(active_symbol_table); in zend_call_function() 1698 if (EG(symtable_cache_ptr)>=EG(symtable_cache)) { in zend_rebuild_symbol_table() [all …]
|
H A D | zend_execute.h | 157 EG(argument_stack)->end - EG(argument_stack)->top)) { \ 190 p->prev = EG(argument_stack); in zend_vm_stack_extend() 191 EG(argument_stack) = p; in zend_vm_stack_extend() 196 return EG(argument_stack)->top; in zend_vm_stack_top() 214 if (UNEXPECTED(EG(argument_stack)->top == ZEND_VM_STACK_ELEMETS(EG(argument_stack)))) { in zend_vm_stack_pop() 216 EG(argument_stack) = p->prev; in zend_vm_stack_pop() 233 (zend_uintptr_t)(EG(argument_stack)->end - EG(argument_stack)->top))) { in zend_vm_stack_alloc() 247 EG(argument_stack)->top += size; in zend_vm_stack_alloc() 256 EG(argument_stack) = p->prev; in zend_vm_stack_free_int() 268 EG(argument_stack) = p->prev; in zend_vm_stack_free() [all …]
|
H A D | zend_vm_execute.skl | 12 if (EG(exception)) { 16 EG(in_execution) = 1; 33 EX(symbol_table) = EG(active_symbol_table); 35 EG(current_execute_data) = execute_data; 45 if (op_array->this_var != -1 && EG(This)) { 46 Z_ADDREF_P(EG(This)); /* For $this pointer */ 47 if (!EG(active_symbol_table)) { 49 *EX(CVs)[op_array->this_var] = EG(This); 52 Z_DELREF_P(EG(This)); 57 EG(opline_ptr) = &EX(opline); [all …]
|
H A D | zend_objects.c | 63 if (object->ce != EG(scope)) { in zend_objects_destroy_object() 66 zend_error(EG(in_execution) ? E_ERROR : E_WARNING, in zend_objects_destroy_object() 69 EG(scope) ? EG(scope)->name : "", in zend_objects_destroy_object() 79 zend_error(EG(in_execution) ? E_ERROR : E_WARNING, in zend_objects_destroy_object() 82 EG(scope) ? EG(scope)->name : "", in zend_objects_destroy_object() 104 if (EG(exception)) { in zend_objects_destroy_object() 105 if (Z_OBJ_HANDLE_P(EG(exception)) == handle) { in zend_objects_destroy_object() 108 old_exception = EG(exception); in zend_objects_destroy_object() 109 EG(exception) = NULL; in zend_objects_destroy_object() 114 if (EG(exception)) { in zend_objects_destroy_object() [all …]
|
H A D | zend_objects_API.c | 107 if (EG(objects_store).free_list_head != -1) { in zend_objects_store_put() 108 handle = EG(objects_store).free_list_head; in zend_objects_store_put() 109 EG(objects_store).free_list_head = EG(objects_store).object_buckets[handle].bucket.free_list.next; in zend_objects_store_put() 111 if (EG(objects_store).top == EG(objects_store).size) { in zend_objects_store_put() 112 EG(objects_store).size <<= 1; in zend_objects_store_put() 113 …EG(objects_store).object_buckets = (zend_object_store_bucket *) erealloc(EG(objects_store).object_… in zend_objects_store_put() 115 handle = EG(objects_store).top++; in zend_objects_store_put() 119 EG(objects_store).object_buckets[handle].valid = 1; in zend_objects_store_put() 161 …EG(objects_store).object_buckets[handle].bucket.free_list.next = EG(objects_store).free_list_head;… 163 EG(objects_store).object_buckets[handle].valid = 0; [all …]
|
H A D | zend.c | 465 memset(EG(exception_op), 0, sizeof(EG(exception_op))); in zend_init_exception_op() 544 EG(lambda_count) = 0; in executor_globals_ctor() 547 EG(in_execution) = 0; in executor_globals_ctor() 548 EG(in_autoload) = NULL; in executor_globals_ctor() 551 EG(exit_status) = 0; in executor_globals_ctor() 552 EG(saved_fpu_cw) = NULL; in executor_globals_ctor() 553 EG(active) = 0; in executor_globals_ctor() 806 if (!EG(bailout)) { in BEGIN_EXTERN_C() 883 EG(opline_ptr) = NULL; in zend_deactivate() 1001 if (EG(exception)) { in zend_error() [all …]
|
H A D | zend_gc.c | 198 EG(objects_store).object_buckets == NULL)) { in gc_zobj_possible_root() 293 if (Z_ARRVAL_P(pz) != &EG(symbol_table)) { in zval_scan_black() 365 if (Z_ARRVAL_P(pz) == &EG(symbol_table)) { in zval_mark_grey() 418 if (EG(objects_store).object_buckets) { in gc_mark_roots() 475 if (Z_ARRVAL_P(pz) == &EG(symbol_table)) { in zval_scan() 499 if (EG(objects_store).object_buckets) { in zobj_scan() 598 if (EG(objects_store).object_buckets) { in zobj_collect_white() 631 if (EG(objects_store).object_buckets) { in gc_collect_roots() 679 if (EG(objects_store).object_buckets && in gc_collect_cycles() 680 EG(objects_store).object_buckets[Z_OBJ_HANDLE(p->z)].valid && in gc_collect_cycles() [all …]
|
H A D | zend_execute.c | 222 if (!EG(active_symbol_table) || in _get_zval_cv_lookup() 238 *ptr = (zval**)EG(current_execute_data)->CVs + (EG(active_op_array)->last_var + var); in _get_zval_cv_lookup() 325 if (EXPECTED(EG(This) != NULL)) { in _get_obj_zval_ptr_unused() 326 return EG(This); in _get_obj_zval_ptr_unused() 340 return &EG(This); in _get_obj_zval_ptr_ptr() 351 return &EG(This); in _get_obj_zval_ptr_ptr_unused() 363 return EG(This); in _get_obj_zval_ptr() 391 if (variable_ptr == EG(error_zval_ptr) || value_ptr==EG(error_zval_ptr)) { in zend_assign_to_variable_reference() 783 return &EG(symbol_table); in zend_get_target_symbol_table() 874 &EG(error_zval_ptr) : &EG(uninitialized_zval_ptr); in zend_fetch_dimension_address_inner() [all …]
|
H A D | zend_exceptions.c | 61 zend_exception_set_previous(EG(exception), EG(prev_exception) TSRMLS_CC); in zend_exception_save() 63 if (EG(exception)) { in zend_exception_save() 64 EG(prev_exception) = EG(exception); in zend_exception_save() 66 EG(exception) = NULL; in zend_exception_save() 73 if (EG(exception)) { in zend_exception_restore() 76 EG(exception) = EG(prev_exception); in zend_exception_restore() 94 if(EG(exception)) { in zend_throw_exception_internal() 109 EG(opline_before_exception) = EG(current_execute_data)->opline; in zend_throw_exception_internal() 110 EG(current_execute_data)->opline = EG(exception_op); in zend_throw_exception_internal() 120 if (!EG(exception)) { in zend_clear_exception() [all …]
|
H A D | zend_ini.c | 94 EG(modified_ini_directives) = NULL; in zend_ini_startup() 104 zend_hash_destroy(EG(ini_directives)); in zend_ini_shutdown() 105 free(EG(ini_directives)); in zend_ini_shutdown() 120 if (EG(modified_ini_directives)) { in zend_ini_deactivate() 123 FREE_HASHTABLE(EG(modified_ini_directives)); in zend_ini_deactivate() 124 EG(modified_ini_directives) = NULL; in zend_ini_deactivate() 135 EG(modified_ini_directives) = NULL; in zend_copy_ini_directives() 192 if (directives != EG(ini_directives)) { in zend_register_ini_entries() 193 directives = EG(ini_directives); in zend_register_ini_entries() 277 if (!EG(modified_ini_directives)) { in zend_alter_ini_entry_ex() [all …]
|
H A D | zend_builtin_functions.c | 733 if (EG(scope)) { in ZEND_FUNCTION() 734 RETURN_STRINGL(EG(scope)->name, EG(scope)->name_length, 1); in ZEND_FUNCTION() 756 if (EG(called_scope)) { in ZEND_FUNCTION() 757 RETURN_STRINGL(EG(called_scope)->name, EG(called_scope)->name_length, 1); in ZEND_FUNCTION() 758 } else if (!EG(scope)) { in ZEND_FUNCTION() 780 ce = EG(scope); in ZEND_FUNCTION() 1031 || (EG(scope) && in ZEND_FUNCTION() 1438 zend_ptr_stack_push(&EG(user_error_handlers), EG(user_error_handler)); in ZEND_FUNCTION() 1476 EG(user_error_handler) = zend_ptr_stack_pop(&EG(user_error_handlers)); in ZEND_FUNCTION() 1509 zend_ptr_stack_push(&EG(user_exception_handlers), EG(user_exception_handler)); in ZEND_FUNCTION() [all …]
|
H A D | zend_object_handlers.c | 169 if ((ce==EG(scope) || property_info->ce == EG(scope)) && EG(scope)) { in zend_verify_property_access() 236 if (EG(scope) != ce in zend_get_property_info() 238 && EG(scope) in zend_get_property_info() 525 if (!EG(exception)) { in zend_std_read_dimension() 773 if (ce == EG(scope)) { in zend_check_private_int() 889 if (EG(scope) && in zend_std_get_method() 1004 EG(This) && in zend_std_get_static_method() 1116 if (EG(scope)) { in zend_std_get_constructor() 1128 if (EG(scope)) { in zend_std_get_constructor() 1283 if (EG(exception)) { in zend_std_cast_object_tostring() [all …]
|
H A D | zend_constants.c | 86 EG(zend_constants) = (HashTable *) malloc(sizeof(HashTable)); in zend_startup_constants() 88 if (zend_hash_init(EG(zend_constants), 20, NULL, ZEND_CONSTANT_DTOR, 1)==FAILURE) { in zend_startup_constants() 161 zend_hash_destroy(EG(zend_constants)); in zend_shutdown_constants() 162 free(EG(zend_constants)); in zend_shutdown_constants() 169 if (EG(full_tables_cleanup)) { in clean_non_persistent_constants() 232 if (zend_hash_find(EG(zend_constants), name, name_len+1, (void **) &c) == FAILURE) { in zend_get_constant() 242 if (!EG(in_execution)) { in zend_get_constant() 303 if (EG(in_execution)) { in zend_get_constant_ex() 304 scope = EG(scope); in zend_get_constant_ex() 331 if (EG(called_scope)) { in zend_get_constant_ex() [all …]
|
H A D | zend_vm_def.h | 2044 if (EG(This) && 2209 if (EG(symtable_cache_ptr)>=EG(symtable_cache_limit)) { in ZEND_VM_HELPER() 2216 *(++EG(symtable_cache_ptr)) = EG(active_symbol_table); in ZEND_VM_HELPER() 2224 if (EG(This)) { in ZEND_VM_HELPER() 2356 if (EG(symtable_cache_ptr)>=EG(symtable_cache_limit)) { in ZEND_VM_HELPER() 2363 *(++EG(symtable_cache_ptr)) = EG(active_symbol_table); in ZEND_VM_HELPER() 2396 if (EG(This)) { in ZEND_VM_HELPER() 2417 if (EG(exception)) { in ZEND_VM_HELPER() 2591 EG(exception) = NULL; 3060 EG(scope) = ce; [all …]
|
H A D | zend_list.c | 45 index = zend_hash_next_free_element(&EG(regular_list)); in zend_list_insert() 47 zend_hash_index_update(&EG(regular_list), index, (void *) &le, sizeof(zend_rsrc_list_entry), NULL); in zend_list_insert() 55 if (zend_hash_index_find(&EG(regular_list), id, (void **) &le)==SUCCESS) { in _zend_list_delete() 58 return zend_hash_index_del(&EG(regular_list), id); in _zend_list_delete() 72 if (zend_hash_index_find(&EG(regular_list), id, (void **) &le)==SUCCESS) { in _zend_list_find() 85 if (zend_hash_index_find(&EG(regular_list), id, (void **) &le)==SUCCESS) { in _zend_list_addref() 223 if (zend_hash_init(&EG(regular_list), 0, NULL, list_entry_destructor, 0)==SUCCESS) { in zend_init_rsrc_list() 224 EG(regular_list).nNextFreeElement=1; /* we don't want resource id 0 */ in zend_init_rsrc_list() 234 return zend_hash_init_ex(&EG(persistent_list), 0, NULL, plist_entry_destructor, 1, 0); in zend_init_rsrc_plist() 256 …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 D | zend_API.c | 995 EG(scope) = old_scope; in zend_merge_properties() 2369 if (!EG(scope)) { in zend_is_callable_check_class() 2381 if (!EG(scope)) { in zend_is_callable_check_class() 2482 EG(scope) = ce_org; in zend_is_callable_check_func() 3366 EG(scope) = scope; in zend_update_property() 3381 EG(scope) = old_scope; in zend_update_property() 3462 EG(scope) = scope; in zend_update_static_property() 3464 EG(scope) = old_scope; in zend_update_static_property() 3571 EG(scope) = scope; in zend_read_property() 3586 EG(scope) = old_scope; in zend_read_property() [all …]
|
H A D | zend_vm_execute.h | 209 if (EG(symtable_cache_ptr)>=EG(symtable_cache_limit)) { in zend_leave_helper_SPEC() 216 *(++EG(symtable_cache_ptr)) = EG(active_symbol_table); in zend_leave_helper_SPEC() 224 if (EG(This)) { in zend_leave_helper_SPEC() 356 if (EG(symtable_cache_ptr)>=EG(symtable_cache_limit)) { in zend_do_fcall_common_helper_SPEC() 363 *(++EG(symtable_cache_ptr)) = EG(active_symbol_table); in zend_do_fcall_common_helper_SPEC() 396 if (EG(This)) { in zend_do_fcall_common_helper_SPEC() 2747 if (EG(This) && in ZEND_INIT_STATIC_METHOD_CALL_SPEC_CONST_CONST_HANDLER() 3324 if (EG(This) && in ZEND_INIT_STATIC_METHOD_CALL_SPEC_CONST_TMP_HANDLER() 3793 if (EG(This) && in ZEND_INIT_STATIC_METHOD_CALL_SPEC_CONST_VAR_HANDLER() 4018 if (EG(This) && in ZEND_INIT_STATIC_METHOD_CALL_SPEC_CONST_UNUSED_HANDLER() [all …]
|
H A D | zend_globals_macros.h | 45 # define EG(v) TSRMG(executor_globals_id, zend_executor_globals *, v) macro 47 # define EG(v) (executor_globals.v) macro
|
H A D | zend_closures.c | 49 zend_function *func = EG(current_execute_data)->function_state.function; in ZEND_METHOD() 135 Z_ADDREF(EG(uninitialized_zval)); in zend_closure_read_property() 136 return &EG(uninitialized_zval); in zend_closure_read_property() 175 zend_execute_data *ex = EG(current_execute_data); in zend_closure_free_storage() 344 if (!EG(active_symbol_table)) { in zval_copy_static_var() 347 …if (zend_hash_quick_find(EG(active_symbol_table), key->arKey, key->nKeyLength, key->h, (void **) &… in zval_copy_static_var() 351 …zend_hash_quick_add(EG(active_symbol_table), key->arKey, key->nKeyLength, key->h, &tmp, sizeof(zva… in zval_copy_static_var() 353 tmp = EG(uninitialized_zval_ptr); in zval_copy_static_var()
|
H A D | zend_interfaces.c | 61 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() 476 if (EG(exception)) { in zend_user_unserialize()
|
/PHP-5.3/ext/spl/ |
H A D | php_spl.c | 259 EG(return_value_ptr_ptr) = &result; in spl_autoload() 260 EG(active_op_array) = new_op_array; in spl_autoload() 261 if (!EG(active_symbol_table)) { in spl_autoload() 269 if (!EG(exception)) { in spl_autoload() 270 if (EG(return_value_ptr_ptr)) { in spl_autoload() 306 EG(opline_ptr) = original_opline_ptr; in PHP_FUNCTION() 322 EG(opline_ptr) = original_opline_ptr; in PHP_FUNCTION() 637 EG(autoload_func) = NULL; in PHP_FUNCTION() 656 EG(autoload_func) = NULL; in PHP_FUNCTION() 676 if (!EG(autoload_func)) { in PHP_FUNCTION() [all …]
|
/PHP-5.3/main/ |
H A D | main.c | 161 EG(precision) = i; in PHP_INI_MH() 820 (!EG(user_error_handler) || !(EG(user_error_handler_error_reporting) & type))) { in php_verror() 975 if (EG(error_handling) == EH_THROW && !EG(exception)) { in php_error_cb() 1108 EG(exit_status) = 255; in php_error_cb() 1611 EG(opline_ptr) = NULL; in php_request_shutdown() 1612 EG(active_op_array) = NULL; in php_request_shutdown() 1922 EG(bailout) = NULL; in php_module_startup() 1936 EG(exception_class) = NULL; in php_module_startup() 2241 EG(exit_status) = 0; in php_execute_script() 2342 EG(exit_status) = 0; in php_execute_simple_script() [all …]
|
H A D | php_variables.c | 76 if (!EG(active_symbol_table)) { in php_register_variable_ex() 79 symtable1 = EG(active_symbol_table); in php_register_variable_ex() 118 if (symtable1 == EG(active_symbol_table) && in php_register_variable_ex() 143 ht = EG(active_symbol_table); in php_register_variable_ex() 556 zend_hash_update(&EG(symbol_table), "argv", sizeof("argv"), &arr, sizeof(zval *), NULL); in php_build_argv() 557 zend_hash_add(&EG(symbol_table), "argc", sizeof("argc"), &argc, sizeof(zval *), NULL); in php_build_argv() 644 int globals_check = (PG(register_globals) && (dest == (&EG(symbol_table)))); in php_autoglobal_merge() 735 … php_autoglobal_merge(&EG(symbol_table), Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_GET]) TSRMLS_CC); in php_hash_environment() 746 … php_autoglobal_merge(&EG(symbol_table), Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_ENV]) TSRMLS_CC); in php_hash_environment() 806 if (zend_hash_find(&EG(symbol_table), "argc", sizeof("argc"), (void**)&argc) == SUCCESS && in php_auto_globals_create_server() [all …]
|
/PHP-5.3/ext/standard/ |
H A D | incomplete_class.c | 62 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()
|