We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19a337d commit 1a74be9Copy full SHA for 1a74be9
phper/src/functions.rs
@@ -651,7 +651,7 @@ impl ZFunc {
651
pub fn get_function_or_method_name(&self) -> ZString {
652
unsafe {
653
let s = phper_get_function_or_method_name(self.as_ptr());
654
- ZString::from_raw(s.cast())
+ ZString::from_raw_cast(s)
655
}
656
657
@@ -890,7 +890,7 @@ pub(crate) fn call_raw_common(call_fn: impl FnOnce(&mut ZVal)) -> crate::Result<
890
if !eg!(exception).is_null() {
891
#[allow(static_mut_refs)]
892
let e = ptr::replace(&mut eg!(exception), null_mut());
893
- let obj = ZObject::from_raw(e.cast());
+ let obj = ZObject::from_raw_cast(e);
894
match ThrowObject::new(obj) {
895
Ok(e) => return Err(e.into()),
896
Err(e) => return Err(e.into()),
0 commit comments