Struct ext_php_rs::bindings::_zend_execute_data [−][src]
#[repr(C)]pub struct _zend_execute_data {
pub opline: *const zend_op,
pub call: *mut zend_execute_data,
pub return_value: *mut zval,
pub func: *mut zend_function,
pub This: zval,
pub prev_execute_data: *mut zend_execute_data,
pub symbol_table: *mut zend_array,
pub run_time_cache: *mut *mut c_void,
pub extra_named_params: *mut zend_array,
}Fields
opline: *const zend_opcall: *mut zend_execute_datareturn_value: *mut zvalfunc: *mut zend_functionThis: zvalprev_execute_data: *mut zend_execute_datasymbol_table: *mut zend_arrayrun_time_cache: *mut *mut c_voidextra_named_params: *mut zend_arrayImplementations
Returns an ArgParser pre-loaded with the arguments contained inside self.
pub fn parser_method<'a, T: RegisteredClass>(
&'a mut self
) -> (ArgParser<'a, '_>, Option<&'a mut ZendClassObject<T>>)
pub fn parser_method<'a, T: RegisteredClass>(
&'a mut self
) -> (ArgParser<'a, '_>, Option<&'a mut ZendClassObject<T>>)
Returns an ArgParser pre-loaded with the arguments contained inside self.
A reference to $this is also returned in an Option, which resolves to None
if this function is not called inside a method.
This function differs from parse_object in the fact that it returns a reference to
a ZendClassObject, which is an object that contains an arbitrary Rust type at the
start of the object. The object will also resolve to None if the function is called
inside a method that does not belong to an object with type T.
Attempts to retrieve a reference to the underlying class object of the Zend object.
Returns a ZendClassObject if the execution data contained a valid object of type T,
otherwise returns None.
Attempts to retrieve the ‘this’ object, which can be used in class methods to retrieve the underlying Zend object.