mirror of
https://github.com/danog/ext-php-rs.git
synced 2024-12-11 16:49:53 +01:00
Revert change to function
This commit is contained in:
parent
1c550852ab
commit
cb89c7b4d8
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
use std::{fmt::Debug, os::raw::c_char, ptr};
|
use std::{fmt::Debug, os::raw::c_char, ptr};
|
||||||
|
|
||||||
use crate::{ffi::{zend_function_entry, zend_function}, flags::FunctionType};
|
use crate::ffi::zend_function_entry;
|
||||||
|
|
||||||
/// A Zend function entry.
|
/// A Zend function entry.
|
||||||
pub type FunctionEntry = zend_function_entry;
|
pub type FunctionEntry = zend_function_entry;
|
||||||
@ -36,11 +36,3 @@ impl FunctionEntry {
|
|||||||
Box::into_raw(Box::new(self))
|
Box::into_raw(Box::new(self))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub type Function = zend_function;
|
|
||||||
|
|
||||||
impl Function {
|
|
||||||
pub fn type_(&self) -> FunctionType {
|
|
||||||
FunctionType::from(unsafe { self.type_ })
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user