mirror of
https://github.com/danog/ext-php-rs.git
synced 2024-11-30 04:39:04 +01:00
parent
42ef04a8ae
commit
acd336994c
@ -86,6 +86,19 @@ impl ExecutorGlobals {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Cancel a requested an interrupt of the PHP VM.
|
||||
pub fn cancel_interrupt(&mut self) {
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(php82)] {
|
||||
unsafe {
|
||||
zend_atomic_bool_store(&mut self.vm_interrupt, false);
|
||||
}
|
||||
} else {
|
||||
self.vm_interrupt = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Executor globals rwlock.
|
||||
|
Loading…
Reference in New Issue
Block a user