mirror of
https://github.com/danog/ext-php-rs.git
synced 2024-12-14 10:08:25 +01:00
Add helper method for function table
This commit is contained in:
parent
42ef04a8ae
commit
89c77585e7
@ -51,6 +51,16 @@ impl ExecutorGlobals {
|
||||
unsafe { self.class_table.as_ref() }
|
||||
}
|
||||
|
||||
/// Attempts to retrieve the global functions hash table.
|
||||
pub fn function_table(&self) -> Option<&ZendHashTable> {
|
||||
unsafe { self.function_table.as_ref() }
|
||||
}
|
||||
|
||||
/// Attempts to retrieve the global functions hash table as mutable.
|
||||
pub fn function_table_mut(&self) -> Option<&mut ZendHashTable> {
|
||||
unsafe { self.function_table.as_mut() }
|
||||
}
|
||||
|
||||
/// Attempts to retrieve the global constants table.
|
||||
pub fn constants(&self) -> Option<&ZendHashTable> {
|
||||
unsafe { self.zend_constants.as_ref() }
|
||||
|
Loading…
Reference in New Issue
Block a user