11/* automatically generated by rust-bindgen 0.65.1 */
22
3- pub const ZEND_DEBUG : u32 = 0 ;
3+ pub const ZEND_DEBUG : u32 = 1 ;
44pub const _ZEND_TYPE_NAME_BIT: u32 = 16777216 ;
55pub const _ZEND_TYPE_NULLABLE_BIT: u32 = 2 ;
66pub const HT_MIN_SIZE : u32 = 8 ;
@@ -69,6 +69,7 @@ pub const ZEND_ACC_USE_GUARDS: u32 = 2048;
6969pub const ZEND_ACC_CONSTANTS_UPDATED : u32 = 4096 ;
7070pub const ZEND_ACC_NO_DYNAMIC_PROPERTIES : u32 = 8192 ;
7171pub const ZEND_HAS_STATIC_IN_METHODS : u32 = 16384 ;
72+ pub const ZEND_ACC_REUSE_GET_ITERATOR : u32 = 65536 ;
7273pub const ZEND_ACC_RESOLVED_PARENT : u32 = 131072 ;
7374pub const ZEND_ACC_RESOLVED_INTERFACES : u32 = 262144 ;
7475pub const ZEND_ACC_UNRESOLVED_VARIANCE : u32 = 524288 ;
@@ -97,7 +98,7 @@ pub const ZEND_EVAL_CODE: u32 = 4;
9798pub const ZEND_ISEMPTY : u32 = 1 ;
9899pub const _ZEND_SEND_MODE_SHIFT: u32 = 25 ;
99100pub const _ZEND_IS_VARIADIC_BIT: u32 = 134217728 ;
100- pub const ZEND_MODULE_API_NO : u32 = 20220829 ;
101+ pub const ZEND_MODULE_API_NO : u32 = 20210902 ;
101102pub const USING_ZTS : u32 = 0 ;
102103pub const MAY_BE_BOOL : u32 = 12 ;
103104pub const MAY_BE_ANY : u32 = 1022 ;
@@ -236,7 +237,7 @@ pub struct _zend_array {
236237 pub gc : zend_refcounted_h ,
237238 pub u : _zend_array__bindgen_ty_1 ,
238239 pub nTableMask : u32 ,
239- pub __bindgen_anon_1 : _zend_array__bindgen_ty_2 ,
240+ pub arData : * mut Bucket ,
240241 pub nNumUsed : u32 ,
241242 pub nNumOfElements : u32 ,
242243 pub nTableSize : u32 ,
@@ -258,13 +259,6 @@ pub struct _zend_array__bindgen_ty_1__bindgen_ty_1 {
258259 pub nIteratorsCount : zend_uchar ,
259260 pub _unused2 : zend_uchar ,
260261}
261- #[ repr( C ) ]
262- #[ derive( Copy , Clone ) ]
263- pub union _zend_array__bindgen_ty_2 {
264- pub arHash : * mut u32 ,
265- pub arData : * mut Bucket ,
266- pub arPacked : * mut zval ,
267- }
268262pub type HashPosition = u32 ;
269263#[ repr( C ) ]
270264#[ derive( Debug , Copy , Clone ) ]
@@ -308,10 +302,22 @@ pub struct _zend_ast_ref {
308302 pub gc : zend_refcounted_h ,
309303}
310304extern "C" {
311- pub fn _emalloc ( size : usize ) -> * mut :: std:: os:: raw:: c_void ;
305+ pub fn _emalloc (
306+ size : usize ,
307+ __zend_filename : * const :: std:: os:: raw:: c_char ,
308+ __zend_lineno : u32 ,
309+ __zend_orig_filename : * const :: std:: os:: raw:: c_char ,
310+ __zend_orig_lineno : u32 ,
311+ ) -> * mut :: std:: os:: raw:: c_void ;
312312}
313313extern "C" {
314- pub fn _efree ( ptr : * mut :: std:: os:: raw:: c_void ) ;
314+ pub fn _efree (
315+ ptr : * mut :: std:: os:: raw:: c_void ,
316+ __zend_filename : * const :: std:: os:: raw:: c_char ,
317+ __zend_lineno : u32 ,
318+ __zend_orig_filename : * const :: std:: os:: raw:: c_char ,
319+ __zend_orig_lineno : u32 ,
320+ ) ;
315321}
316322extern "C" {
317323 pub fn __zend_malloc ( len : usize ) -> * mut :: std:: os:: raw:: c_void ;
@@ -374,7 +380,7 @@ extern "C" {
374380 pub fn zend_hash_get_current_key_zval_ex (
375381 ht : * const HashTable ,
376382 key : * mut zval ,
377- pos : * const HashPosition ,
383+ pos : * mut HashPosition ,
378384 ) ;
379385}
380386extern "C" {
@@ -464,15 +470,6 @@ pub struct _zend_class_iterator_funcs {
464470pub type zend_class_iterator_funcs = _zend_class_iterator_funcs ;
465471#[ repr( C ) ]
466472#[ derive( Debug , Copy , Clone ) ]
467- pub struct _zend_class_arrayaccess_funcs {
468- pub zf_offsetget : * mut zend_function ,
469- pub zf_offsetexists : * mut zend_function ,
470- pub zf_offsetset : * mut zend_function ,
471- pub zf_offsetunset : * mut zend_function ,
472- }
473- pub type zend_class_arrayaccess_funcs = _zend_class_arrayaccess_funcs ;
474- #[ repr( C ) ]
475- #[ derive( Debug , Copy , Clone ) ]
476473pub struct _zend_serialize_data {
477474 _unused : [ u8 ; 0 ] ,
478475}
@@ -521,7 +518,6 @@ pub struct _zend_class_mutable_data {
521518 pub default_properties_table : * mut zval ,
522519 pub constants_table : * mut HashTable ,
523520 pub ce_flags : u32 ,
524- pub backed_enum_table : * mut HashTable ,
525521}
526522pub type zend_class_mutable_data = _zend_class_mutable_data ;
527523#[ repr( C ) ]
@@ -564,11 +560,11 @@ pub struct _zend_class_entry {
564560 pub default_static_members_count : :: std:: os:: raw:: c_int ,
565561 pub default_properties_table : * mut zval ,
566562 pub default_static_members_table : * mut zval ,
567- pub static_members_table__ptr : * mut zval ,
563+ pub static_members_table__ptr : * mut * mut zval ,
568564 pub function_table : HashTable ,
569565 pub properties_info : HashTable ,
570566 pub constants_table : HashTable ,
571- pub mutable_data__ptr : * mut zend_class_mutable_data ,
567+ pub mutable_data__ptr : * mut * mut zend_class_mutable_data ,
572568 pub inheritance_cache : * mut zend_inheritance_cache_entry ,
573569 pub properties_info_table : * mut * mut _zend_property_info ,
574570 pub constructor : * mut zend_function ,
@@ -585,7 +581,6 @@ pub struct _zend_class_entry {
585581 pub __serialize : * mut zend_function ,
586582 pub __unserialize : * mut zend_function ,
587583 pub iterator_funcs_ptr : * mut zend_class_iterator_funcs ,
588- pub arrayaccess_funcs_ptr : * mut zend_class_arrayaccess_funcs ,
589584 pub __bindgen_anon_2 : _zend_class_entry__bindgen_ty_2 ,
590585 pub get_iterator : :: std:: option:: Option <
591586 unsafe extern "C" fn (
@@ -787,10 +782,10 @@ pub type zend_object_cast_t = ::std::option::Option<
787782 readobj : * mut zend_object ,
788783 retval : * mut zval ,
789784 type_ : :: std:: os:: raw:: c_int ,
790- ) -> zend_result ,
785+ ) -> :: std :: os :: raw :: c_int ,
791786> ;
792787pub type zend_object_count_elements_t = :: std:: option:: Option <
793- unsafe extern "C" fn ( object : * mut zend_object , count : * mut zend_long ) -> zend_result ,
788+ unsafe extern "C" fn ( object : * mut zend_object , count : * mut zend_long ) -> :: std :: os :: raw :: c_int ,
794789> ;
795790pub type zend_object_get_closure_t = :: std:: option:: Option <
796791 unsafe extern "C" fn (
@@ -799,7 +794,7 @@ pub type zend_object_get_closure_t = ::std::option::Option<
799794 fptr_ptr : * mut * mut zend_function ,
800795 obj_ptr : * mut * mut zend_object ,
801796 check_only : bool ,
802- ) -> zend_result ,
797+ ) -> :: std :: os :: raw :: c_int ,
803798> ;
804799pub type zend_object_get_gc_t = :: std:: option:: Option <
805800 unsafe extern "C" fn (
@@ -814,7 +809,7 @@ pub type zend_object_do_operation_t = ::std::option::Option<
814809 result : * mut zval ,
815810 op1 : * mut zval ,
816811 op2 : * mut zval ,
817- ) -> zend_result ,
812+ ) -> :: std :: os :: raw :: c_int ,
818813> ;
819814#[ repr( C ) ]
820815#[ derive( Debug , Copy , Clone ) ]
@@ -965,13 +960,13 @@ pub struct _zend_op_array {
965960 pub required_num_args : u32 ,
966961 pub arg_info : * mut zend_arg_info ,
967962 pub attributes : * mut HashTable ,
968- pub T : u32 ,
969- pub run_time_cache__ptr : * mut * mut :: std:: os:: raw:: c_void ,
970963 pub cache_size : :: std:: os:: raw:: c_int ,
971964 pub last_var : :: std:: os:: raw:: c_int ,
965+ pub T : u32 ,
972966 pub last : u32 ,
973967 pub opcodes : * mut zend_op ,
974- pub static_variables_ptr__ptr : * mut HashTable ,
968+ pub run_time_cache__ptr : * mut * mut * mut :: std:: os:: raw:: c_void ,
969+ pub static_variables_ptr__ptr : * mut * mut HashTable ,
975970 pub static_variables : * mut HashTable ,
976971 pub vars : * mut * mut zend_string ,
977972 pub refcount : * mut u32 ,
@@ -1005,8 +1000,6 @@ pub struct _zend_internal_function {
10051000 pub required_num_args : u32 ,
10061001 pub arg_info : * mut zend_internal_arg_info ,
10071002 pub attributes : * mut HashTable ,
1008- pub T : u32 ,
1009- pub run_time_cache__ptr : * mut * mut :: std:: os:: raw:: c_void ,
10101003 pub handler : zif_handler ,
10111004 pub module : * mut _zend_module_entry ,
10121005 pub reserved : [ * mut :: std:: os:: raw:: c_void ; 6usize ] ,
@@ -1034,8 +1027,6 @@ pub struct _zend_function__bindgen_ty_1 {
10341027 pub required_num_args : u32 ,
10351028 pub arg_info : * mut zend_arg_info ,
10361029 pub attributes : * mut HashTable ,
1037- pub T : u32 ,
1038- pub run_time_cache__ptr : * mut * mut :: std:: os:: raw:: c_void ,
10391030}
10401031#[ repr( C ) ]
10411032pub struct _zend_execute_data {
@@ -1064,15 +1055,6 @@ extern "C" {
10641055}
10651056#[ repr( C ) ]
10661057#[ derive( Debug , Copy , Clone ) ]
1067- pub struct zend_atomic_bool_s {
1068- pub value : u8 ,
1069- }
1070- pub type zend_atomic_bool = zend_atomic_bool_s ;
1071- extern "C" {
1072- pub fn zend_atomic_bool_store ( obj : * mut zend_atomic_bool , desired : bool ) ;
1073- }
1074- #[ repr( C ) ]
1075- #[ derive( Debug , Copy , Clone ) ]
10761058pub struct _zend_stack {
10771059 pub size : :: std:: os:: raw:: c_int ,
10781060 pub top : :: std:: os:: raw:: c_int ,
@@ -1148,8 +1130,8 @@ pub struct _zend_executor_globals {
11481130 pub in_autoload : * mut HashTable ,
11491131 pub full_tables_cleanup : bool ,
11501132 pub no_extensions : bool ,
1151- pub vm_interrupt : zend_atomic_bool ,
1152- pub timed_out : zend_atomic_bool ,
1133+ pub vm_interrupt : bool ,
1134+ pub timed_out : bool ,
11531135 pub hard_timeout : zend_long ,
11541136 pub regular_list : HashTable ,
11551137 pub persistent_list : HashTable ,
@@ -1193,8 +1175,6 @@ pub struct _zend_executor_globals {
11931175 pub record_errors : bool ,
11941176 pub num_errors : u32 ,
11951177 pub errors : * mut * mut zend_error_info ,
1196- pub filename_override : * mut zend_string ,
1197- pub lineno_override : zend_long ,
11981178 pub reserved : [ * mut :: std:: os:: raw:: c_void ; 6usize ] ,
11991179}
12001180pub type zend_module_entry = _zend_module_entry ;
0 commit comments