Skip to content

Commit 52525f2

Browse files
committed
Fix allowed bindings duplication
1 parent 95ce652 commit 52525f2

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

allowed_bindings.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,5 @@ bind! {
270270
php_unregister_url_stream_wrapper_volatile,
271271
php_register_url_stream_wrapper_volatile,
272272
php_stream_wrapper,
273-
zend_llist_get_prev_ex,
274273
php_stream_stdio_ops
275274
}

src/zend/ex.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::ffi::{zend_execute_data, ZEND_MM_ALIGNMENT, ZEND_MM_ALIGNMENT_MASK, _zend_function};
1+
use crate::ffi::{_zend_function, zend_execute_data, ZEND_MM_ALIGNMENT, ZEND_MM_ALIGNMENT_MASK};
22

33
use crate::{
44
args::ArgParser,
@@ -233,15 +233,11 @@ impl ExecuteData {
233233
}
234234

235235
pub fn previous(&self) -> Option<&Self> {
236-
unsafe {
237-
self.prev_execute_data.as_ref()
238-
}
236+
unsafe { self.prev_execute_data.as_ref() }
239237
}
240238

241239
pub fn function(&self) -> Option<&_zend_function> {
242-
unsafe {
243-
self.func.as_ref()
244-
}
240+
unsafe { self.func.as_ref() }
245241
}
246242
}
247243

0 commit comments

Comments
 (0)