#[repr(C)]pub struct _php_core_globals {Show 77 fields
    pub output_buffering: zend_long,
    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 c_char,
    pub unserialize_callback_func: *mut c_char,
    pub serialize_precision: zend_long,
    pub memory_limit: zend_long,
    pub max_input_time: zend_long,
    pub error_log: *mut c_char,
    pub doc_root: *mut c_char,
    pub user_dir: *mut c_char,
    pub include_path: *mut c_char,
    pub open_basedir: *mut c_char,
    pub open_basedir_modified: bool,
    pub extension_dir: *mut c_char,
    pub php_binary: *mut c_char,
    pub sys_temp_dir: *mut c_char,
    pub upload_tmp_dir: *mut c_char,
    pub upload_max_filesize: zend_long,
    pub error_append_string: *mut c_char,
    pub error_prepend_string: *mut c_char,
    pub auto_prepend_file: *mut c_char,
    pub auto_append_file: *mut c_char,
    pub input_encoding: *mut c_char,
    pub internal_encoding: *mut c_char,
    pub output_encoding: *mut c_char,
    pub arg_separator: arg_separators,
    pub variables_order: *mut c_char,
    pub rfc1867_protected_variables: HashTable,
    pub connection_status: c_short,
    pub ignore_user_abort: bool,
    pub header_is_being_sent: c_uchar,
    pub tick_functions: zend_llist,
    pub http_globals: [zval; 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 c_char,
    pub docref_ext: *mut c_char,
    pub xmlrpc_error_number: zend_long,
    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: c_int,
    pub last_error_lineno: c_int,
    pub last_error_message: *mut zend_string,
    pub last_error_file: *mut zend_string,
    pub php_sys_temp_dir: *mut c_char,
    pub disable_classes: *mut c_char,
    pub max_input_nesting_level: zend_long,
    pub max_input_vars: zend_long,
    pub user_ini_filename: *mut c_char,
    pub user_ini_cache_ttl: zend_long,
    pub request_order: *mut c_char,
    pub mail_log: *mut c_char,
    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: zend_long,
    pub syslog_ident: *mut c_char,
    pub syslog_filter: zend_long,
    pub error_log_mode: zend_long,
}Fields§
§output_buffering: zend_long§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 c_char§unserialize_callback_func: *mut c_char§serialize_precision: zend_long§memory_limit: zend_long§max_input_time: zend_long§error_log: *mut c_char§doc_root: *mut c_char§user_dir: *mut c_char§include_path: *mut c_char§open_basedir: *mut c_char§open_basedir_modified: bool§extension_dir: *mut c_char§php_binary: *mut c_char§sys_temp_dir: *mut c_char§upload_tmp_dir: *mut c_char§upload_max_filesize: zend_long§error_append_string: *mut c_char§error_prepend_string: *mut c_char§auto_prepend_file: *mut c_char§auto_append_file: *mut c_char§input_encoding: *mut c_char§internal_encoding: *mut c_char§output_encoding: *mut c_char§arg_separator: arg_separators§variables_order: *mut c_char§rfc1867_protected_variables: HashTable§connection_status: c_short§ignore_user_abort: bool§header_is_being_sent: c_uchar§tick_functions: zend_llist§http_globals: [zval; 6]§expose_php: bool§register_argc_argv: bool§auto_globals_jit: bool§html_errors: bool§xmlrpc_errors: bool§docref_root: *mut c_char§docref_ext: *mut c_char§xmlrpc_error_number: zend_long§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: c_int§last_error_lineno: c_int§last_error_message: *mut zend_string§last_error_file: *mut zend_string§php_sys_temp_dir: *mut c_char§disable_classes: *mut c_char§max_input_nesting_level: zend_long§max_input_vars: zend_long§user_ini_filename: *mut c_char§user_ini_cache_ttl: zend_long§request_order: *mut c_char§mail_log: *mut c_char§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: zend_long§syslog_ident: *mut c_char§syslog_filter: zend_long§error_log_mode: zend_longImplementations§
Source§impl _php_core_globals
 
impl _php_core_globals
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.