Type Alias ext_php_rs::zend::FileGlobals
source · pub type FileGlobals = php_file_globals;
Expand description
Stores global variables used in the SAPI.
Aliased Type§
struct FileGlobals {Show 15 fields
pub pclose_ret: i32,
pub def_chunk_size: usize,
pub auto_detect_line_endings: bool,
pub default_socket_timeout: i64,
pub user_agent: *mut i8,
pub from_address: *mut i8,
pub user_stream_current_filename: *const i8,
pub default_context: *mut _php_stream_context,
pub stream_wrappers: *mut _zend_array,
pub stream_filters: *mut _zend_array,
pub wrapper_errors: *mut _zend_array,
pub pclose_wait: i32,
pub tmp_host_info: hostent,
pub tmp_host_buf: *mut i8,
pub tmp_host_buf_len: usize,
}
Fields§
§pclose_ret: i32
§def_chunk_size: usize
§auto_detect_line_endings: bool
§default_socket_timeout: i64
§user_agent: *mut i8
§from_address: *mut i8
§user_stream_current_filename: *const i8
§default_context: *mut _php_stream_context
§stream_wrappers: *mut _zend_array
§stream_filters: *mut _zend_array
§wrapper_errors: *mut _zend_array
§pclose_wait: i32
§tmp_host_info: hostent
§tmp_host_buf: *mut i8
§tmp_host_buf_len: usize
Implementations§
source§impl FileGlobals
impl FileGlobals
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.