Fix allowed bindings duplication

This commit is contained in:
Joe Hoyle 2023-07-19 11:36:08 +02:00
parent 95ce6527cf
commit 52525f249f
2 changed files with 3 additions and 8 deletions

View File

@ -270,6 +270,5 @@ bind! {
php_unregister_url_stream_wrapper_volatile, php_unregister_url_stream_wrapper_volatile,
php_register_url_stream_wrapper_volatile, php_register_url_stream_wrapper_volatile,
php_stream_wrapper, php_stream_wrapper,
zend_llist_get_prev_ex,
php_stream_stdio_ops php_stream_stdio_ops
} }

View File

@ -1,4 +1,4 @@
use crate::ffi::{zend_execute_data, ZEND_MM_ALIGNMENT, ZEND_MM_ALIGNMENT_MASK, _zend_function}; use crate::ffi::{_zend_function, zend_execute_data, ZEND_MM_ALIGNMENT, ZEND_MM_ALIGNMENT_MASK};
use crate::{ use crate::{
args::ArgParser, args::ArgParser,
@ -233,15 +233,11 @@ impl ExecuteData {
} }
pub fn previous(&self) -> Option<&Self> { pub fn previous(&self) -> Option<&Self> {
unsafe { unsafe { self.prev_execute_data.as_ref() }
self.prev_execute_data.as_ref()
}
} }
pub fn function(&self) -> Option<&_zend_function> { pub fn function(&self) -> Option<&_zend_function> {
unsafe { unsafe { self.func.as_ref() }
self.func.as_ref()
}
} }
} }