#[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_long

Implementations§

source§

impl _php_core_globals

source

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.

source

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.

source

pub fn http_server_vars(&self) -> Option<&ZendHashTable>

Get the HTTP Server variables. Equivalent of $_SERVER.

source

pub fn http_post_vars(&self) -> &ZendHashTable

Get the HTTP POST variables. Equivalent of $_POST.

source

pub fn http_get_vars(&self) -> &ZendHashTable

Get the HTTP GET variables. Equivalent of $_GET.

Get the HTTP Cookie variables. Equivalent of $_COOKIE.

source

pub fn http_request_vars(&self) -> &ZendHashTable

Get the HTTP Request variables. Equivalent of $_REQUEST.

source

pub fn http_env_vars(&self) -> &ZendHashTable

Get the HTTP Environment variables. Equivalent of $_ENV.

source

pub fn http_files_vars(&self) -> &ZendHashTable

Get the HTTP Files variables. Equivalent of $_FILES.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.