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 0e9d9f1 commit bd7284eCopy full SHA for bd7284e
phper/src/errors.rs
@@ -482,6 +482,7 @@ thread_local! {
482
impl Default for ExceptionGuard {
483
fn default() -> Self {
484
EXCEPTION_STACK.with(|stack| unsafe {
485
+ #[allow(static_mut_refs)]
486
stack
487
.borrow_mut()
488
.push(replace(&mut eg!(exception), null_mut()));
phper/src/functions.rs
@@ -657,6 +657,7 @@ pub(crate) fn call_raw_common(call_fn: impl FnOnce(&mut ZVal)) -> crate::Result<
657
658
unsafe {
659
if !eg!(exception).is_null() {
660
661
let e = ptr::replace(&mut eg!(exception), null_mut());
662
let obj = ZObject::from_raw(e);
663
match ThrowObject::new(obj) {
0 commit comments