Struct phper_sys::_sapi_module_struct
source · [−]#[repr(C)]pub struct _sapi_module_struct {Show 36 fields
pub name: *mut c_char,
pub pretty_name: *mut c_char,
pub startup: Option<unsafe extern "C" fn(sapi_module: *mut _sapi_module_struct) -> c_int>,
pub shutdown: Option<unsafe extern "C" fn(sapi_module: *mut _sapi_module_struct) -> c_int>,
pub activate: Option<unsafe extern "C" fn() -> c_int>,
pub deactivate: Option<unsafe extern "C" fn() -> c_int>,
pub ub_write: Option<unsafe extern "C" fn(str_: *const c_char, str_length: size_t) -> size_t>,
pub flush: Option<unsafe extern "C" fn(server_context: *mut c_void)>,
pub get_stat: Option<unsafe extern "C" fn() -> *mut zend_stat_t>,
pub getenv: Option<unsafe extern "C" fn(name: *mut c_char, name_len: size_t) -> *mut c_char>,
pub sapi_error: Option<unsafe extern "C" fn(type_: c_int, error_msg: *const c_char, ...)>,
pub header_handler: Option<unsafe extern "C" fn(sapi_header: *mut sapi_header_struct, op: sapi_header_op_enum, sapi_headers: *mut sapi_headers_struct) -> c_int>,
pub send_headers: Option<unsafe extern "C" fn(sapi_headers: *mut sapi_headers_struct) -> c_int>,
pub send_header: Option<unsafe extern "C" fn(sapi_header: *mut sapi_header_struct, server_context: *mut c_void)>,
pub read_post: Option<unsafe extern "C" fn(buffer: *mut c_char, count_bytes: size_t) -> size_t>,
pub read_cookies: Option<unsafe extern "C" fn() -> *mut c_char>,
pub register_server_variables: Option<unsafe extern "C" fn(track_vars_array: *mut zval)>,
pub log_message: Option<unsafe extern "C" fn(message: *mut c_char, syslog_type_int: c_int)>,
pub get_request_time: Option<unsafe extern "C" fn() -> f64>,
pub terminate_process: Option<unsafe extern "C" fn()>,
pub php_ini_path_override: *mut c_char,
pub default_post_reader: Option<unsafe extern "C" fn()>,
pub treat_data: Option<unsafe extern "C" fn(arg: c_int, str_: *mut c_char, destArray: *mut zval)>,
pub executable_location: *mut c_char,
pub php_ini_ignore: c_int,
pub php_ini_ignore_cwd: c_int,
pub get_fd: Option<unsafe extern "C" fn(fd: *mut c_int) -> c_int>,
pub force_http_10: Option<unsafe extern "C" fn() -> c_int>,
pub get_target_uid: Option<unsafe extern "C" fn(arg1: *mut uid_t) -> c_int>,
pub get_target_gid: Option<unsafe extern "C" fn(arg1: *mut gid_t) -> c_int>,
pub input_filter: Option<unsafe extern "C" fn(arg: c_int, var: *mut c_char, val: *mut *mut c_char, val_len: size_t, new_val_len: *mut size_t) -> c_uint>,
pub ini_defaults: Option<unsafe extern "C" fn(configuration_hash: *mut HashTable)>,
pub phpinfo_as_text: c_int,
pub ini_entries: *mut c_char,
pub additional_functions: *const zend_function_entry,
pub input_filter_init: Option<unsafe extern "C" fn() -> c_uint>,
}Fields
name: *mut c_charpretty_name: *mut c_charstartup: Option<unsafe extern "C" fn(sapi_module: *mut _sapi_module_struct) -> c_int>shutdown: Option<unsafe extern "C" fn(sapi_module: *mut _sapi_module_struct) -> c_int>activate: Option<unsafe extern "C" fn() -> c_int>deactivate: Option<unsafe extern "C" fn() -> c_int>ub_write: Option<unsafe extern "C" fn(str_: *const c_char, str_length: size_t) -> size_t>flush: Option<unsafe extern "C" fn(server_context: *mut c_void)>get_stat: Option<unsafe extern "C" fn() -> *mut zend_stat_t>getenv: Option<unsafe extern "C" fn(name: *mut c_char, name_len: size_t) -> *mut c_char>sapi_error: Option<unsafe extern "C" fn(type_: c_int, error_msg: *const c_char, ...)>header_handler: Option<unsafe extern "C" fn(sapi_header: *mut sapi_header_struct, op: sapi_header_op_enum, sapi_headers: *mut sapi_headers_struct) -> c_int>send_headers: Option<unsafe extern "C" fn(sapi_headers: *mut sapi_headers_struct) -> c_int>send_header: Option<unsafe extern "C" fn(sapi_header: *mut sapi_header_struct, server_context: *mut c_void)>read_post: Option<unsafe extern "C" fn(buffer: *mut c_char, count_bytes: size_t) -> size_t>register_server_variables: Option<unsafe extern "C" fn(track_vars_array: *mut zval)>log_message: Option<unsafe extern "C" fn(message: *mut c_char, syslog_type_int: c_int)>get_request_time: Option<unsafe extern "C" fn() -> f64>terminate_process: Option<unsafe extern "C" fn()>php_ini_path_override: *mut c_chardefault_post_reader: Option<unsafe extern "C" fn()>treat_data: Option<unsafe extern "C" fn(arg: c_int, str_: *mut c_char, destArray: *mut zval)>executable_location: *mut c_charphp_ini_ignore: c_intphp_ini_ignore_cwd: c_intget_fd: Option<unsafe extern "C" fn(fd: *mut c_int) -> c_int>force_http_10: Option<unsafe extern "C" fn() -> c_int>get_target_uid: Option<unsafe extern "C" fn(arg1: *mut uid_t) -> c_int>get_target_gid: Option<unsafe extern "C" fn(arg1: *mut gid_t) -> c_int>input_filter: Option<unsafe extern "C" fn(arg: c_int, var: *mut c_char, val: *mut *mut c_char, val_len: size_t, new_val_len: *mut size_t) -> c_uint>ini_defaults: Option<unsafe extern "C" fn(configuration_hash: *mut HashTable)>phpinfo_as_text: c_intini_entries: *mut c_charadditional_functions: *const zend_function_entryinput_filter_init: Option<unsafe extern "C" fn() -> c_uint>Trait Implementations
sourceimpl Clone for _sapi_module_struct
impl Clone for _sapi_module_struct
sourcefn clone(&self) -> _sapi_module_struct
fn clone(&self) -> _sapi_module_struct
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for _sapi_module_struct
impl Debug for _sapi_module_struct
impl Copy for _sapi_module_struct
Auto Trait Implementations
impl RefUnwindSafe for _sapi_module_struct
impl !Send for _sapi_module_struct
impl !Sync for _sapi_module_struct
impl Unpin for _sapi_module_struct
impl UnwindSafe for _sapi_module_struct
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more