pub type ProcessGlobals = php_core_globals;Expand description
Stores global variables used in the PHP executor.
Aliased Type§
#[repr(C)]pub struct ProcessGlobals {Show 77 fields
pub output_buffering: i64,
pub implicit_flush: bool,
pub enable_dl: bool,
pub display_errors: u8,
pub display_startup_errors: bool,
pub log_errors: bool,
pub ignore_repeated_errors: bool,
pub ignore_repeated_source: bool,
pub report_memleaks: bool,
pub output_handler: *mut i8,
pub unserialize_callback_func: *mut i8,
pub serialize_precision: i64,
pub memory_limit: i64,
pub max_input_time: i64,
pub error_log: *mut i8,
pub doc_root: *mut i8,
pub user_dir: *mut i8,
pub include_path: *mut i8,
pub open_basedir: *mut i8,
pub open_basedir_modified: bool,
pub extension_dir: *mut i8,
pub php_binary: *mut i8,
pub sys_temp_dir: *mut i8,
pub upload_tmp_dir: *mut i8,
pub upload_max_filesize: i64,
pub error_append_string: *mut i8,
pub error_prepend_string: *mut i8,
pub auto_prepend_file: *mut i8,
pub auto_append_file: *mut i8,
pub input_encoding: *mut i8,
pub internal_encoding: *mut i8,
pub output_encoding: *mut i8,
pub arg_separator: _arg_separators,
pub variables_order: *mut i8,
pub rfc1867_protected_variables: _zend_array,
pub connection_status: i16,
pub ignore_user_abort: bool,
pub header_is_being_sent: u8,
pub tick_functions: _zend_llist,
pub http_globals: [_zval_struct; 6],
pub expose_php: bool,
pub register_argc_argv: bool,
pub auto_globals_jit: bool,
pub html_errors: bool,
pub xmlrpc_errors: bool,
pub docref_root: *mut i8,
pub docref_ext: *mut i8,
pub xmlrpc_error_number: i64,
pub activated_auto_globals: [bool; 8],
pub modules_activated: bool,
pub file_uploads: bool,
pub during_request_startup: bool,
pub allow_url_fopen: bool,
pub enable_post_data_reading: bool,
pub report_zend_debug: bool,
pub last_error_type: i32,
pub last_error_lineno: i32,
pub last_error_message: *mut _zend_string,
pub last_error_file: *mut _zend_string,
pub php_sys_temp_dir: *mut i8,
pub disable_classes: *mut i8,
pub max_input_nesting_level: i64,
pub max_input_vars: i64,
pub user_ini_filename: *mut i8,
pub user_ini_cache_ttl: i64,
pub request_order: *mut i8,
pub mail_log: *mut i8,
pub mail_x_header: bool,
pub mail_mixed_lf_and_crlf: bool,
pub in_error_log: bool,
pub allow_url_include: bool,
pub in_user_include: bool,
pub have_called_openlog: bool,
pub syslog_facility: i64,
pub syslog_ident: *mut i8,
pub syslog_filter: i64,
pub error_log_mode: i64,
}Fields§
§output_buffering: i64§implicit_flush: bool§enable_dl: bool§display_errors: u8§display_startup_errors: bool§log_errors: bool§ignore_repeated_errors: bool§ignore_repeated_source: bool§report_memleaks: bool§output_handler: *mut i8§unserialize_callback_func: *mut i8§serialize_precision: i64§memory_limit: i64§max_input_time: i64§error_log: *mut i8§doc_root: *mut i8§user_dir: *mut i8§include_path: *mut i8§open_basedir: *mut i8§open_basedir_modified: bool§extension_dir: *mut i8§php_binary: *mut i8§sys_temp_dir: *mut i8§upload_tmp_dir: *mut i8§upload_max_filesize: i64§error_append_string: *mut i8§error_prepend_string: *mut i8§auto_prepend_file: *mut i8§auto_append_file: *mut i8§input_encoding: *mut i8§internal_encoding: *mut i8§output_encoding: *mut i8§arg_separator: _arg_separators§variables_order: *mut i8§rfc1867_protected_variables: _zend_array§connection_status: i16§ignore_user_abort: bool§header_is_being_sent: u8§tick_functions: _zend_llist§http_globals: [_zval_struct; 6]§expose_php: bool§register_argc_argv: bool§auto_globals_jit: bool§html_errors: bool§xmlrpc_errors: bool§docref_root: *mut i8§docref_ext: *mut i8§xmlrpc_error_number: i64§activated_auto_globals: [bool; 8]§modules_activated: bool§file_uploads: bool§during_request_startup: bool§allow_url_fopen: bool§enable_post_data_reading: bool§report_zend_debug: bool§last_error_type: i32§last_error_lineno: i32§last_error_message: *mut _zend_string§last_error_file: *mut _zend_string§php_sys_temp_dir: *mut i8§disable_classes: *mut i8§max_input_nesting_level: i64§max_input_vars: i64§user_ini_filename: *mut i8§user_ini_cache_ttl: i64§request_order: *mut i8§mail_log: *mut i8§mail_x_header: bool§mail_mixed_lf_and_crlf: bool§in_error_log: bool§allow_url_include: bool§in_user_include: bool§have_called_openlog: bool§syslog_facility: i64§syslog_ident: *mut i8§syslog_filter: i64§error_log_mode: i64Implementations§
Source§impl ProcessGlobals
impl ProcessGlobals
Sourcepub fn get() -> GlobalReadGuard<Self>
pub fn get() -> GlobalReadGuard<Self>
Returns a reference to the PHP process globals.
The process globals are guarded by a RwLock. There can be multiple
immutable references at one time but only ever one mutable reference.
Attempting to retrieve the globals while already holding the global
guard will lead to a deadlock. Dropping the globals guard will release
the lock.
Sourcepub fn get_mut() -> GlobalWriteGuard<Self>
pub fn get_mut() -> GlobalWriteGuard<Self>
Returns a mutable reference to the PHP executor globals.
The executor globals are guarded by a RwLock. There can be multiple
immutable references at one time but only ever one mutable reference.
Attempting to retrieve the globals while already holding the global
guard will lead to a deadlock. Dropping the globals guard will release
the lock.
Sourcepub fn http_server_vars(&self) -> Option<&ZendHashTable>
pub fn http_server_vars(&self) -> Option<&ZendHashTable>
Get the HTTP Server variables. Equivalent of $_SERVER.
Sourcepub fn http_post_vars(&self) -> &ZendHashTable
pub fn http_post_vars(&self) -> &ZendHashTable
Get the HTTP POST variables. Equivalent of $_POST.
§Panics
- If the post global is not found or fails to be populated.
Sourcepub fn http_get_vars(&self) -> &ZendHashTable
pub fn http_get_vars(&self) -> &ZendHashTable
Get the HTTP GET variables. Equivalent of $_GET.
§Panics
- If the get global is not found or fails to be populated.
Get the HTTP Cookie variables. Equivalent of $_COOKIE.
§Panics
- If the cookie global is not found or fails to be populated.
Sourcepub fn http_request_vars(&self) -> Option<&ZendHashTable>
pub fn http_request_vars(&self) -> Option<&ZendHashTable>
Get the HTTP Request variables. Equivalent of $_REQUEST.
§Panics
- If the request global is not found or fails to be populated.
- If the request global is not a
ZendHashTable.
Sourcepub fn http_env_vars(&self) -> &ZendHashTable
pub fn http_env_vars(&self) -> &ZendHashTable
Get the HTTP Environment variables. Equivalent of $_ENV.
§Panics
- If the environment global is not found or fails to be populated.
Sourcepub fn http_files_vars(&self) -> &ZendHashTable
pub fn http_files_vars(&self) -> &ZendHashTable
Get the HTTP Files variables. Equivalent of $_FILES.
§Panics
- If the files global is not found or fails to be populated.