Skip to content

Commit 26b6067

Browse files
committed
feat(try): add bindings for bailout
1 parent dd0b864 commit 26b6067

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
@@ -261,5 +261,6 @@ bind! {
261261
zend_file_handle,
262262
zend_stream_init_filename,
263263
php_execute_script,
264-
zend_register_module_ex
264+
zend_register_module_ex,
265+
_zend_bailout
265266
}

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)