#[repr(C)]pub struct php_file_globals {Show 16 fields
pub pclose_ret: c_int,
pub def_chunk_size: usize,
pub auto_detect_line_endings: bool,
pub default_socket_timeout: zend_long,
pub user_agent: *mut zend_string,
pub from_address: *mut zend_string,
pub user_stream_current_filename: *const c_char,
pub default_context: *mut php_stream_context,
pub stream_wrappers: *mut HashTable,
pub stream_filters: *mut HashTable,
pub wrapper_logged_errors: *mut HashTable,
pub stream_error_state: php_stream_error_state,
pub pclose_wait: c_int,
pub tmp_host_info: hostent,
pub tmp_host_buf: *mut c_char,
pub tmp_host_buf_len: usize,
}Fields§
§pclose_ret: c_int§def_chunk_size: usize§auto_detect_line_endings: bool§default_socket_timeout: zend_long§user_agent: *mut zend_string§from_address: *mut zend_string§user_stream_current_filename: *const c_char§default_context: *mut php_stream_context§stream_wrappers: *mut HashTable§stream_filters: *mut HashTable§wrapper_logged_errors: *mut HashTable§stream_error_state: php_stream_error_state§pclose_wait: c_int§tmp_host_info: hostent§tmp_host_buf: *mut c_char§tmp_host_buf_len: usizeImplementations§
Source§impl php_file_globals
impl php_file_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.
§Panics
- If static file globals are not set
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 stream_wrappers(&self) -> Option<&'static ZendHashTable>
pub fn stream_wrappers(&self) -> Option<&'static ZendHashTable>
Returns the stream wrappers
Trait Implementations§
Source§impl Clone for php_file_globals
impl Clone for php_file_globals
impl Copy for php_file_globals
Auto Trait Implementations§
impl !Send for php_file_globals
impl !Sync for php_file_globals
impl Forget for php_file_globals
impl Freeze for php_file_globals
impl Move for php_file_globals
impl RefUnwindSafe for php_file_globals
impl Unpin for php_file_globals
impl UnsafeUnpin for php_file_globalswhere
*mut _zend_string: UnsafeUnpin,
*const i8: UnsafeUnpin,
*mut _php_stream_context: UnsafeUnpin,
*mut _zend_array: UnsafeUnpin,
*mut _php_stream_error_operation: UnsafeUnpin,
*mut _php_stream_stored_error: UnsafeUnpin,
*mut _php_stream_error_entry: UnsafeUnpin,
*mut i8: UnsafeUnpin,
*mut *mut i8: UnsafeUnpin,
impl UnwindSafe for php_file_globalswhere
*mut _zend_string: UnwindSafe,
*const i8: UnwindSafe,
*mut _php_stream_context: UnwindSafe,
*mut _zend_array: UnwindSafe,
*mut _php_stream_error_operation: UnwindSafe,
*mut _php_stream_stored_error: UnwindSafe,
*mut _php_stream_error_entry: UnwindSafe,
*mut i8: UnwindSafe,
*mut *mut i8: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more