@@ -54,7 +54,6 @@ pub const ZEND_ACC_USE_GUARDS: u32 = 2048;
5454pub const ZEND_ACC_CONSTANTS_UPDATED : u32 = 4096 ;
5555pub const ZEND_ACC_NO_DYNAMIC_PROPERTIES : u32 = 8192 ;
5656pub const ZEND_HAS_STATIC_IN_METHODS : u32 = 16384 ;
57- pub const ZEND_ACC_REUSE_GET_ITERATOR : u32 = 65536 ;
5857pub const ZEND_ACC_RESOLVED_PARENT : u32 = 131072 ;
5958pub const ZEND_ACC_RESOLVED_INTERFACES : u32 = 262144 ;
6059pub const ZEND_ACC_UNRESOLVED_VARIANCE : u32 = 524288 ;
@@ -80,7 +79,7 @@ pub const ZEND_ACC_STRICT_TYPES: u32 = 2147483648;
8079pub const ZEND_ISEMPTY : u32 = 1 ;
8180pub const _ZEND_SEND_MODE_SHIFT: u32 = 25 ;
8281pub const _ZEND_IS_VARIADIC_BIT: u32 = 134217728 ;
83- pub const ZEND_MODULE_API_NO : u32 = 20210902 ;
82+ pub const ZEND_MODULE_API_NO : u32 = 20220829 ;
8483pub const USING_ZTS : u32 = 0 ;
8584pub const MAY_BE_BOOL : u32 = 12 ;
8685pub const MAY_BE_ANY : u32 = 1022 ;
@@ -219,7 +218,7 @@ pub struct _zend_array {
219218 pub gc : zend_refcounted_h ,
220219 pub u : _zend_array__bindgen_ty_1 ,
221220 pub nTableMask : u32 ,
222- pub arData : * mut Bucket ,
221+ pub __bindgen_anon_1 : _zend_array__bindgen_ty_2 ,
223222 pub nNumUsed : u32 ,
224223 pub nNumOfElements : u32 ,
225224 pub nTableSize : u32 ,
@@ -241,6 +240,13 @@ pub struct _zend_array__bindgen_ty_1__bindgen_ty_1 {
241240 pub nIteratorsCount : zend_uchar ,
242241 pub _unused2 : zend_uchar ,
243242}
243+ #[ repr( C ) ]
244+ #[ derive( Copy , Clone ) ]
245+ pub union _zend_array__bindgen_ty_2 {
246+ pub arHash : * mut u32 ,
247+ pub arData : * mut Bucket ,
248+ pub arPacked : * mut zval ,
249+ }
244250pub type HashPosition = u32 ;
245251#[ repr( C ) ]
246252#[ derive( Debug , Copy , Clone ) ]
@@ -420,6 +426,15 @@ pub struct _zend_class_iterator_funcs {
420426pub type zend_class_iterator_funcs = _zend_class_iterator_funcs ;
421427#[ repr( C ) ]
422428#[ derive( Debug , Copy , Clone ) ]
429+ pub struct _zend_class_arrayaccess_funcs {
430+ pub zf_offsetget : * mut zend_function ,
431+ pub zf_offsetexists : * mut zend_function ,
432+ pub zf_offsetset : * mut zend_function ,
433+ pub zf_offsetunset : * mut zend_function ,
434+ }
435+ pub type zend_class_arrayaccess_funcs = _zend_class_arrayaccess_funcs ;
436+ #[ repr( C ) ]
437+ #[ derive( Debug , Copy , Clone ) ]
423438pub struct _zend_serialize_data {
424439 _unused : [ u8 ; 0 ] ,
425440}
@@ -468,6 +483,7 @@ pub struct _zend_class_mutable_data {
468483 pub default_properties_table : * mut zval ,
469484 pub constants_table : * mut HashTable ,
470485 pub ce_flags : u32 ,
486+ pub backed_enum_table : * mut HashTable ,
471487}
472488pub type zend_class_mutable_data = _zend_class_mutable_data ;
473489#[ repr( C ) ]
@@ -510,11 +526,11 @@ pub struct _zend_class_entry {
510526 pub default_static_members_count : :: std:: os:: raw:: c_int ,
511527 pub default_properties_table : * mut zval ,
512528 pub default_static_members_table : * mut zval ,
513- pub static_members_table__ptr : * mut * mut zval ,
529+ pub static_members_table__ptr : * mut zval ,
514530 pub function_table : HashTable ,
515531 pub properties_info : HashTable ,
516532 pub constants_table : HashTable ,
517- pub mutable_data__ptr : * mut * mut zend_class_mutable_data ,
533+ pub mutable_data__ptr : * mut zend_class_mutable_data ,
518534 pub inheritance_cache : * mut zend_inheritance_cache_entry ,
519535 pub properties_info_table : * mut * mut _zend_property_info ,
520536 pub constructor : * mut zend_function ,
@@ -531,6 +547,7 @@ pub struct _zend_class_entry {
531547 pub __serialize : * mut zend_function ,
532548 pub __unserialize : * mut zend_function ,
533549 pub iterator_funcs_ptr : * mut zend_class_iterator_funcs ,
550+ pub arrayaccess_funcs_ptr : * mut zend_class_arrayaccess_funcs ,
534551 pub __bindgen_anon_2 : _zend_class_entry__bindgen_ty_2 ,
535552 pub get_iterator : :: std:: option:: Option <
536553 unsafe extern "C" fn (
@@ -728,10 +745,10 @@ pub type zend_object_cast_t = ::std::option::Option<
728745 readobj : * mut zend_object ,
729746 retval : * mut zval ,
730747 type_ : :: std:: os:: raw:: c_int ,
731- ) -> :: std :: os :: raw :: c_int ,
748+ ) -> zend_result ,
732749> ;
733750pub type zend_object_count_elements_t = :: std:: option:: Option <
734- unsafe extern "C" fn ( object : * mut zend_object , count : * mut zend_long ) -> :: std :: os :: raw :: c_int ,
751+ unsafe extern "C" fn ( object : * mut zend_object , count : * mut zend_long ) -> zend_result ,
735752> ;
736753pub type zend_object_get_closure_t = :: std:: option:: Option <
737754 unsafe extern "C" fn (
@@ -740,7 +757,7 @@ pub type zend_object_get_closure_t = ::std::option::Option<
740757 fptr_ptr : * mut * mut zend_function ,
741758 obj_ptr : * mut * mut zend_object ,
742759 check_only : bool ,
743- ) -> :: std :: os :: raw :: c_int ,
760+ ) -> zend_result ,
744761> ;
745762pub type zend_object_get_gc_t = :: std:: option:: Option <
746763 unsafe extern "C" fn (
@@ -755,7 +772,7 @@ pub type zend_object_do_operation_t = ::std::option::Option<
755772 result : * mut zval ,
756773 op1 : * mut zval ,
757774 op2 : * mut zval ,
758- ) -> :: std :: os :: raw :: c_int ,
775+ ) -> zend_result ,
759776> ;
760777#[ repr( C ) ]
761778#[ derive( Debug , Copy , Clone ) ]
@@ -903,13 +920,13 @@ pub struct _zend_op_array {
903920 pub required_num_args : u32 ,
904921 pub arg_info : * mut zend_arg_info ,
905922 pub attributes : * mut HashTable ,
923+ pub T : u32 ,
924+ pub run_time_cache__ptr : * mut * mut :: std:: os:: raw:: c_void ,
906925 pub cache_size : :: std:: os:: raw:: c_int ,
907926 pub last_var : :: std:: os:: raw:: c_int ,
908- pub T : u32 ,
909927 pub last : u32 ,
910928 pub opcodes : * mut zend_op ,
911- pub run_time_cache__ptr : * mut * mut * mut :: std:: os:: raw:: c_void ,
912- pub static_variables_ptr__ptr : * mut * mut HashTable ,
929+ pub static_variables_ptr__ptr : * mut HashTable ,
913930 pub static_variables : * mut HashTable ,
914931 pub vars : * mut * mut zend_string ,
915932 pub refcount : * mut u32 ,
@@ -943,6 +960,8 @@ pub struct _zend_internal_function {
943960 pub required_num_args : u32 ,
944961 pub arg_info : * mut zend_internal_arg_info ,
945962 pub attributes : * mut HashTable ,
963+ pub T : u32 ,
964+ pub run_time_cache__ptr : * mut * mut :: std:: os:: raw:: c_void ,
946965 pub handler : zif_handler ,
947966 pub module : * mut _zend_module_entry ,
948967 pub reserved : [ * mut :: std:: os:: raw:: c_void ; 6usize ] ,
@@ -970,6 +989,8 @@ pub struct _zend_function__bindgen_ty_1 {
970989 pub required_num_args : u32 ,
971990 pub arg_info : * mut zend_arg_info ,
972991 pub attributes : * mut HashTable ,
992+ pub T : u32 ,
993+ pub run_time_cache__ptr : * mut * mut :: std:: os:: raw:: c_void ,
973994}
974995#[ repr( C ) ]
975996pub struct _zend_execute_data {
@@ -998,6 +1019,12 @@ extern "C" {
9981019}
9991020#[ repr( C ) ]
10001021#[ derive( Debug , Copy , Clone ) ]
1022+ pub struct zend_atomic_bool_s {
1023+ pub value : u8 ,
1024+ }
1025+ pub type zend_atomic_bool = zend_atomic_bool_s ;
1026+ #[ repr( C ) ]
1027+ #[ derive( Debug , Copy , Clone ) ]
10011028pub struct _zend_stack {
10021029 pub size : :: std:: os:: raw:: c_int ,
10031030 pub top : :: std:: os:: raw:: c_int ,
@@ -1073,8 +1100,8 @@ pub struct _zend_executor_globals {
10731100 pub in_autoload : * mut HashTable ,
10741101 pub full_tables_cleanup : bool ,
10751102 pub no_extensions : bool ,
1076- pub vm_interrupt : bool ,
1077- pub timed_out : bool ,
1103+ pub vm_interrupt : zend_atomic_bool ,
1104+ pub timed_out : zend_atomic_bool ,
10781105 pub hard_timeout : zend_long ,
10791106 pub regular_list : HashTable ,
10801107 pub persistent_list : HashTable ,
@@ -1118,6 +1145,8 @@ pub struct _zend_executor_globals {
11181145 pub record_errors : bool ,
11191146 pub num_errors : u32 ,
11201147 pub errors : * mut * mut zend_error_info ,
1148+ pub filename_override : * mut zend_string ,
1149+ pub lineno_override : zend_long ,
11211150 pub reserved : [ * mut :: std:: os:: raw:: c_void ; 6usize ] ,
11221151}
11231152pub type zend_module_entry = _zend_module_entry ;
0 commit comments