@@ -54,7 +54,6 @@ pub const ZEND_ACC_USE_GUARDS: u32 = 2048;
54
54
pub const ZEND_ACC_CONSTANTS_UPDATED : u32 = 4096 ;
55
55
pub const ZEND_ACC_NO_DYNAMIC_PROPERTIES : u32 = 8192 ;
56
56
pub const ZEND_HAS_STATIC_IN_METHODS : u32 = 16384 ;
57
- pub const ZEND_ACC_REUSE_GET_ITERATOR : u32 = 65536 ;
58
57
pub const ZEND_ACC_RESOLVED_PARENT : u32 = 131072 ;
59
58
pub const ZEND_ACC_RESOLVED_INTERFACES : u32 = 262144 ;
60
59
pub const ZEND_ACC_UNRESOLVED_VARIANCE : u32 = 524288 ;
@@ -80,7 +79,7 @@ pub const ZEND_ACC_STRICT_TYPES: u32 = 2147483648;
80
79
pub const ZEND_ISEMPTY : u32 = 1 ;
81
80
pub const _ZEND_SEND_MODE_SHIFT: u32 = 25 ;
82
81
pub 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 ;
84
83
pub const USING_ZTS : u32 = 0 ;
85
84
pub const MAY_BE_BOOL : u32 = 12 ;
86
85
pub const MAY_BE_ANY : u32 = 1022 ;
@@ -219,7 +218,7 @@ pub struct _zend_array {
219
218
pub gc : zend_refcounted_h ,
220
219
pub u : _zend_array__bindgen_ty_1 ,
221
220
pub nTableMask : u32 ,
222
- pub arData : * mut Bucket ,
221
+ pub __bindgen_anon_1 : _zend_array__bindgen_ty_2 ,
223
222
pub nNumUsed : u32 ,
224
223
pub nNumOfElements : u32 ,
225
224
pub nTableSize : u32 ,
@@ -241,6 +240,13 @@ pub struct _zend_array__bindgen_ty_1__bindgen_ty_1 {
241
240
pub nIteratorsCount : zend_uchar ,
242
241
pub _unused2 : zend_uchar ,
243
242
}
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
+ }
244
250
pub type HashPosition = u32 ;
245
251
#[ repr( C ) ]
246
252
#[ derive( Debug , Copy , Clone ) ]
@@ -420,6 +426,15 @@ pub struct _zend_class_iterator_funcs {
420
426
pub type zend_class_iterator_funcs = _zend_class_iterator_funcs ;
421
427
#[ repr( C ) ]
422
428
#[ 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 ) ]
423
438
pub struct _zend_serialize_data {
424
439
_unused : [ u8 ; 0 ] ,
425
440
}
@@ -468,6 +483,7 @@ pub struct _zend_class_mutable_data {
468
483
pub default_properties_table : * mut zval ,
469
484
pub constants_table : * mut HashTable ,
470
485
pub ce_flags : u32 ,
486
+ pub backed_enum_table : * mut HashTable ,
471
487
}
472
488
pub type zend_class_mutable_data = _zend_class_mutable_data ;
473
489
#[ repr( C ) ]
@@ -510,11 +526,11 @@ pub struct _zend_class_entry {
510
526
pub default_static_members_count : :: std:: os:: raw:: c_int ,
511
527
pub default_properties_table : * mut zval ,
512
528
pub default_static_members_table : * mut zval ,
513
- pub static_members_table__ptr : * mut * mut zval ,
529
+ pub static_members_table__ptr : * mut zval ,
514
530
pub function_table : HashTable ,
515
531
pub properties_info : HashTable ,
516
532
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 ,
518
534
pub inheritance_cache : * mut zend_inheritance_cache_entry ,
519
535
pub properties_info_table : * mut * mut _zend_property_info ,
520
536
pub constructor : * mut zend_function ,
@@ -531,6 +547,7 @@ pub struct _zend_class_entry {
531
547
pub __serialize : * mut zend_function ,
532
548
pub __unserialize : * mut zend_function ,
533
549
pub iterator_funcs_ptr : * mut zend_class_iterator_funcs ,
550
+ pub arrayaccess_funcs_ptr : * mut zend_class_arrayaccess_funcs ,
534
551
pub __bindgen_anon_2 : _zend_class_entry__bindgen_ty_2 ,
535
552
pub get_iterator : :: std:: option:: Option <
536
553
unsafe extern "C" fn (
@@ -728,10 +745,10 @@ pub type zend_object_cast_t = ::std::option::Option<
728
745
readobj : * mut zend_object ,
729
746
retval : * mut zval ,
730
747
type_ : :: std:: os:: raw:: c_int ,
731
- ) -> :: std :: os :: raw :: c_int ,
748
+ ) -> zend_result ,
732
749
> ;
733
750
pub 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 ,
735
752
> ;
736
753
pub type zend_object_get_closure_t = :: std:: option:: Option <
737
754
unsafe extern "C" fn (
@@ -740,7 +757,7 @@ pub type zend_object_get_closure_t = ::std::option::Option<
740
757
fptr_ptr : * mut * mut zend_function ,
741
758
obj_ptr : * mut * mut zend_object ,
742
759
check_only : bool ,
743
- ) -> :: std :: os :: raw :: c_int ,
760
+ ) -> zend_result ,
744
761
> ;
745
762
pub type zend_object_get_gc_t = :: std:: option:: Option <
746
763
unsafe extern "C" fn (
@@ -755,7 +772,7 @@ pub type zend_object_do_operation_t = ::std::option::Option<
755
772
result : * mut zval ,
756
773
op1 : * mut zval ,
757
774
op2 : * mut zval ,
758
- ) -> :: std :: os :: raw :: c_int ,
775
+ ) -> zend_result ,
759
776
> ;
760
777
#[ repr( C ) ]
761
778
#[ derive( Debug , Copy , Clone ) ]
@@ -903,13 +920,13 @@ pub struct _zend_op_array {
903
920
pub required_num_args : u32 ,
904
921
pub arg_info : * mut zend_arg_info ,
905
922
pub attributes : * mut HashTable ,
923
+ pub T : u32 ,
924
+ pub run_time_cache__ptr : * mut * mut :: std:: os:: raw:: c_void ,
906
925
pub cache_size : :: std:: os:: raw:: c_int ,
907
926
pub last_var : :: std:: os:: raw:: c_int ,
908
- pub T : u32 ,
909
927
pub last : u32 ,
910
928
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 ,
913
930
pub static_variables : * mut HashTable ,
914
931
pub vars : * mut * mut zend_string ,
915
932
pub refcount : * mut u32 ,
@@ -943,6 +960,8 @@ pub struct _zend_internal_function {
943
960
pub required_num_args : u32 ,
944
961
pub arg_info : * mut zend_internal_arg_info ,
945
962
pub attributes : * mut HashTable ,
963
+ pub T : u32 ,
964
+ pub run_time_cache__ptr : * mut * mut :: std:: os:: raw:: c_void ,
946
965
pub handler : zif_handler ,
947
966
pub module : * mut _zend_module_entry ,
948
967
pub reserved : [ * mut :: std:: os:: raw:: c_void ; 6usize ] ,
@@ -970,6 +989,8 @@ pub struct _zend_function__bindgen_ty_1 {
970
989
pub required_num_args : u32 ,
971
990
pub arg_info : * mut zend_arg_info ,
972
991
pub attributes : * mut HashTable ,
992
+ pub T : u32 ,
993
+ pub run_time_cache__ptr : * mut * mut :: std:: os:: raw:: c_void ,
973
994
}
974
995
#[ repr( C ) ]
975
996
pub struct _zend_execute_data {
@@ -998,6 +1019,12 @@ extern "C" {
998
1019
}
999
1020
#[ repr( C ) ]
1000
1021
#[ 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 ) ]
1001
1028
pub struct _zend_stack {
1002
1029
pub size : :: std:: os:: raw:: c_int ,
1003
1030
pub top : :: std:: os:: raw:: c_int ,
@@ -1073,8 +1100,8 @@ pub struct _zend_executor_globals {
1073
1100
pub in_autoload : * mut HashTable ,
1074
1101
pub full_tables_cleanup : bool ,
1075
1102
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 ,
1078
1105
pub hard_timeout : zend_long ,
1079
1106
pub regular_list : HashTable ,
1080
1107
pub persistent_list : HashTable ,
@@ -1118,6 +1145,8 @@ pub struct _zend_executor_globals {
1118
1145
pub record_errors : bool ,
1119
1146
pub num_errors : u32 ,
1120
1147
pub errors : * mut * mut zend_error_info ,
1148
+ pub filename_override : * mut zend_string ,
1149
+ pub lineno_override : zend_long ,
1121
1150
pub reserved : [ * mut :: std:: os:: raw:: c_void ; 6usize ] ,
1122
1151
}
1123
1152
pub type zend_module_entry = _zend_module_entry ;
0 commit comments