@@ -69,7 +69,6 @@ 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 ;
7372pub const ZEND_ACC_RESOLVED_PARENT : u32 = 131072 ;
7473pub const ZEND_ACC_RESOLVED_INTERFACES : u32 = 262144 ;
7574pub const ZEND_ACC_UNRESOLVED_VARIANCE : u32 = 524288 ;
@@ -98,7 +97,7 @@ pub const ZEND_EVAL_CODE: u32 = 4;
9897pub const ZEND_ISEMPTY : u32 = 1 ;
9998pub const _ZEND_SEND_MODE_SHIFT: u32 = 25 ;
10099pub const _ZEND_IS_VARIADIC_BIT: u32 = 134217728 ;
101- pub const ZEND_MODULE_API_NO : u32 = 20210902 ;
100+ pub const ZEND_MODULE_API_NO : u32 = 20220829 ;
102101pub const USING_ZTS : u32 = 0 ;
103102pub const MAY_BE_BOOL : u32 = 12 ;
104103pub const MAY_BE_ANY : u32 = 1022 ;
@@ -237,7 +236,7 @@ pub struct _zend_array {
237236 pub gc : zend_refcounted_h ,
238237 pub u : _zend_array__bindgen_ty_1 ,
239238 pub nTableMask : u32 ,
240- pub arData : * mut Bucket ,
239+ pub __bindgen_anon_1 : _zend_array__bindgen_ty_2 ,
241240 pub nNumUsed : u32 ,
242241 pub nNumOfElements : u32 ,
243242 pub nTableSize : u32 ,
@@ -259,6 +258,13 @@ pub struct _zend_array__bindgen_ty_1__bindgen_ty_1 {
259258 pub nIteratorsCount : zend_uchar ,
260259 pub _unused2 : zend_uchar ,
261260}
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+ }
262268pub type HashPosition = u32 ;
263269#[ repr( C ) ]
264270#[ derive( Debug , Copy , Clone ) ]
@@ -380,7 +386,7 @@ extern "C" {
380386 pub fn zend_hash_get_current_key_zval_ex (
381387 ht : * const HashTable ,
382388 key : * mut zval ,
383- pos : * mut HashPosition ,
389+ pos : * const HashPosition ,
384390 ) ;
385391}
386392extern "C" {
@@ -470,6 +476,15 @@ pub struct _zend_class_iterator_funcs {
470476pub type zend_class_iterator_funcs = _zend_class_iterator_funcs ;
471477#[ repr( C ) ]
472478#[ derive( Debug , Copy , Clone ) ]
479+ pub struct _zend_class_arrayaccess_funcs {
480+ pub zf_offsetget : * mut zend_function ,
481+ pub zf_offsetexists : * mut zend_function ,
482+ pub zf_offsetset : * mut zend_function ,
483+ pub zf_offsetunset : * mut zend_function ,
484+ }
485+ pub type zend_class_arrayaccess_funcs = _zend_class_arrayaccess_funcs ;
486+ #[ repr( C ) ]
487+ #[ derive( Debug , Copy , Clone ) ]
473488pub struct _zend_serialize_data {
474489 _unused : [ u8 ; 0 ] ,
475490}
@@ -518,6 +533,7 @@ pub struct _zend_class_mutable_data {
518533 pub default_properties_table : * mut zval ,
519534 pub constants_table : * mut HashTable ,
520535 pub ce_flags : u32 ,
536+ pub backed_enum_table : * mut HashTable ,
521537}
522538pub type zend_class_mutable_data = _zend_class_mutable_data ;
523539#[ repr( C ) ]
@@ -560,11 +576,11 @@ pub struct _zend_class_entry {
560576 pub default_static_members_count : :: std:: os:: raw:: c_int ,
561577 pub default_properties_table : * mut zval ,
562578 pub default_static_members_table : * mut zval ,
563- pub static_members_table__ptr : * mut * mut zval ,
579+ pub static_members_table__ptr : * mut zval ,
564580 pub function_table : HashTable ,
565581 pub properties_info : HashTable ,
566582 pub constants_table : HashTable ,
567- pub mutable_data__ptr : * mut * mut zend_class_mutable_data ,
583+ pub mutable_data__ptr : * mut zend_class_mutable_data ,
568584 pub inheritance_cache : * mut zend_inheritance_cache_entry ,
569585 pub properties_info_table : * mut * mut _zend_property_info ,
570586 pub constructor : * mut zend_function ,
@@ -581,6 +597,7 @@ pub struct _zend_class_entry {
581597 pub __serialize : * mut zend_function ,
582598 pub __unserialize : * mut zend_function ,
583599 pub iterator_funcs_ptr : * mut zend_class_iterator_funcs ,
600+ pub arrayaccess_funcs_ptr : * mut zend_class_arrayaccess_funcs ,
584601 pub __bindgen_anon_2 : _zend_class_entry__bindgen_ty_2 ,
585602 pub get_iterator : :: std:: option:: Option <
586603 unsafe extern "C" fn (
@@ -782,10 +799,10 @@ pub type zend_object_cast_t = ::std::option::Option<
782799 readobj : * mut zend_object ,
783800 retval : * mut zval ,
784801 type_ : :: std:: os:: raw:: c_int ,
785- ) -> :: std :: os :: raw :: c_int ,
802+ ) -> zend_result ,
786803> ;
787804pub type zend_object_count_elements_t = :: std:: option:: Option <
788- unsafe extern "C" fn ( object : * mut zend_object , count : * mut zend_long ) -> :: std :: os :: raw :: c_int ,
805+ unsafe extern "C" fn ( object : * mut zend_object , count : * mut zend_long ) -> zend_result ,
789806> ;
790807pub type zend_object_get_closure_t = :: std:: option:: Option <
791808 unsafe extern "C" fn (
@@ -794,7 +811,7 @@ pub type zend_object_get_closure_t = ::std::option::Option<
794811 fptr_ptr : * mut * mut zend_function ,
795812 obj_ptr : * mut * mut zend_object ,
796813 check_only : bool ,
797- ) -> :: std :: os :: raw :: c_int ,
814+ ) -> zend_result ,
798815> ;
799816pub type zend_object_get_gc_t = :: std:: option:: Option <
800817 unsafe extern "C" fn (
@@ -809,7 +826,7 @@ pub type zend_object_do_operation_t = ::std::option::Option<
809826 result : * mut zval ,
810827 op1 : * mut zval ,
811828 op2 : * mut zval ,
812- ) -> :: std :: os :: raw :: c_int ,
829+ ) -> zend_result ,
813830> ;
814831#[ repr( C ) ]
815832#[ derive( Debug , Copy , Clone ) ]
@@ -960,13 +977,13 @@ pub struct _zend_op_array {
960977 pub required_num_args : u32 ,
961978 pub arg_info : * mut zend_arg_info ,
962979 pub attributes : * mut HashTable ,
980+ pub T : u32 ,
981+ pub run_time_cache__ptr : * mut * mut :: std:: os:: raw:: c_void ,
963982 pub cache_size : :: std:: os:: raw:: c_int ,
964983 pub last_var : :: std:: os:: raw:: c_int ,
965- pub T : u32 ,
966984 pub last : u32 ,
967985 pub opcodes : * mut zend_op ,
968- pub run_time_cache__ptr : * mut * mut * mut :: std:: os:: raw:: c_void ,
969- pub static_variables_ptr__ptr : * mut * mut HashTable ,
986+ pub static_variables_ptr__ptr : * mut HashTable ,
970987 pub static_variables : * mut HashTable ,
971988 pub vars : * mut * mut zend_string ,
972989 pub refcount : * mut u32 ,
@@ -1000,6 +1017,8 @@ pub struct _zend_internal_function {
10001017 pub required_num_args : u32 ,
10011018 pub arg_info : * mut zend_internal_arg_info ,
10021019 pub attributes : * mut HashTable ,
1020+ pub T : u32 ,
1021+ pub run_time_cache__ptr : * mut * mut :: std:: os:: raw:: c_void ,
10031022 pub handler : zif_handler ,
10041023 pub module : * mut _zend_module_entry ,
10051024 pub reserved : [ * mut :: std:: os:: raw:: c_void ; 6usize ] ,
@@ -1027,6 +1046,8 @@ pub struct _zend_function__bindgen_ty_1 {
10271046 pub required_num_args : u32 ,
10281047 pub arg_info : * mut zend_arg_info ,
10291048 pub attributes : * mut HashTable ,
1049+ pub T : u32 ,
1050+ pub run_time_cache__ptr : * mut * mut :: std:: os:: raw:: c_void ,
10301051}
10311052#[ repr( C ) ]
10321053pub struct _zend_execute_data {
@@ -1055,6 +1076,15 @@ extern "C" {
10551076}
10561077#[ repr( C ) ]
10571078#[ derive( Debug , Copy , Clone ) ]
1079+ pub struct zend_atomic_bool_s {
1080+ pub value : u8 ,
1081+ }
1082+ pub type zend_atomic_bool = zend_atomic_bool_s ;
1083+ extern "C" {
1084+ pub fn zend_atomic_bool_store ( obj : * mut zend_atomic_bool , desired : bool ) ;
1085+ }
1086+ #[ repr( C ) ]
1087+ #[ derive( Debug , Copy , Clone ) ]
10581088pub struct _zend_stack {
10591089 pub size : :: std:: os:: raw:: c_int ,
10601090 pub top : :: std:: os:: raw:: c_int ,
@@ -1130,8 +1160,8 @@ pub struct _zend_executor_globals {
11301160 pub in_autoload : * mut HashTable ,
11311161 pub full_tables_cleanup : bool ,
11321162 pub no_extensions : bool ,
1133- pub vm_interrupt : bool ,
1134- pub timed_out : bool ,
1163+ pub vm_interrupt : zend_atomic_bool ,
1164+ pub timed_out : zend_atomic_bool ,
11351165 pub hard_timeout : zend_long ,
11361166 pub regular_list : HashTable ,
11371167 pub persistent_list : HashTable ,
@@ -1175,6 +1205,8 @@ pub struct _zend_executor_globals {
11751205 pub record_errors : bool ,
11761206 pub num_errors : u32 ,
11771207 pub errors : * mut * mut zend_error_info ,
1208+ pub filename_override : * mut zend_string ,
1209+ pub lineno_override : zend_long ,
11781210 pub reserved : [ * mut :: std:: os:: raw:: c_void ; 6usize ] ,
11791211}
11801212pub type zend_module_entry = _zend_module_entry ;
0 commit comments