Skip to content

Commit ad35650

Browse files
committed
feat(try): add bindings for bailout
1 parent 25cfc18 commit ad35650

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

allowed_bindings.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,5 +260,6 @@ bind! {
260260
zend_eval_string,
261261
zend_file_handle,
262262
zend_stream_init_filename,
263-
php_execute_script
263+
php_execute_script,
264+
_zend_bailout
264265
}

docsrs_bindings.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,9 @@ pub struct _zend_class_entry__bindgen_ty_4__bindgen_ty_2 {
789789
pub builtin_functions: *const _zend_function_entry,
790790
pub module: *mut _zend_module_entry,
791791
}
792+
extern "C" {
793+
pub fn _zend_bailout(filename: *const ::std::os::raw::c_char, lineno: u32) -> !;
794+
}
792795
extern "C" {
793796
pub static mut zend_interrupt_function:
794797
::std::option::Option<unsafe extern "C" fn(execute_data: *mut zend_execute_data)>;

0 commit comments

Comments
 (0)