Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Continue
  • Loading branch information
jmjoy committed Jun 19, 2025
commit 1a74be9c60caacc78ec76301b57f2d824539448f
4 changes: 2 additions & 2 deletions phper/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ impl ZFunc {
pub fn get_function_or_method_name(&self) -> ZString {
unsafe {
let s = phper_get_function_or_method_name(self.as_ptr());
ZString::from_raw(s.cast())
ZString::from_raw_cast(s)
}
}

Expand Down Expand Up @@ -890,7 +890,7 @@ pub(crate) fn call_raw_common(call_fn: impl FnOnce(&mut ZVal)) -> crate::Result<
if !eg!(exception).is_null() {
#[allow(static_mut_refs)]
let e = ptr::replace(&mut eg!(exception), null_mut());
let obj = ZObject::from_raw(e.cast());
let obj = ZObject::from_raw_cast(e);
match ThrowObject::new(obj) {
Ok(e) => return Err(e.into()),
Err(e) => return Err(e.into()),
Expand Down
Loading