@@ -69,7 +69,6 @@ pub const ZEND_ACC_USE_GUARDS: u32 = 2048;
69
69
pub const ZEND_ACC_CONSTANTS_UPDATED : u32 = 4096 ;
70
70
pub const ZEND_ACC_NO_DYNAMIC_PROPERTIES : u32 = 8192 ;
71
71
pub const ZEND_HAS_STATIC_IN_METHODS : u32 = 16384 ;
72
- pub const ZEND_ACC_REUSE_GET_ITERATOR : u32 = 65536 ;
73
72
pub const ZEND_ACC_RESOLVED_PARENT : u32 = 131072 ;
74
73
pub const ZEND_ACC_RESOLVED_INTERFACES : u32 = 262144 ;
75
74
pub const ZEND_ACC_UNRESOLVED_VARIANCE : u32 = 524288 ;
@@ -98,7 +97,7 @@ pub const ZEND_EVAL_CODE: u32 = 4;
98
97
pub const ZEND_ISEMPTY : u32 = 1 ;
99
98
pub const _ZEND_SEND_MODE_SHIFT: u32 = 25 ;
100
99
pub 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 ;
102
101
pub const USING_ZTS : u32 = 0 ;
103
102
pub const MAY_BE_BOOL : u32 = 12 ;
104
103
pub const MAY_BE_ANY : u32 = 1022 ;
@@ -237,7 +236,7 @@ pub struct _zend_array {
237
236
pub gc : zend_refcounted_h ,
238
237
pub u : _zend_array__bindgen_ty_1 ,
239
238
pub nTableMask : u32 ,
240
- pub arData : * mut Bucket ,
239
+ pub __bindgen_anon_1 : _zend_array__bindgen_ty_2 ,
241
240
pub nNumUsed : u32 ,
242
241
pub nNumOfElements : u32 ,
243
242
pub nTableSize : u32 ,
@@ -259,6 +258,13 @@ pub struct _zend_array__bindgen_ty_1__bindgen_ty_1 {
259
258
pub nIteratorsCount : zend_uchar ,
260
259
pub _unused2 : zend_uchar ,
261
260
}
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
+ }
262
268
pub type HashPosition = u32 ;
263
269
#[ repr( C ) ]
264
270
#[ derive( Debug , Copy , Clone ) ]
@@ -380,7 +386,7 @@ extern "C" {
380
386
pub fn zend_hash_get_current_key_zval_ex (
381
387
ht : * const HashTable ,
382
388
key : * mut zval ,
383
- pos : * mut HashPosition ,
389
+ pos : * const HashPosition ,
384
390
) ;
385
391
}
386
392
extern "C" {
@@ -470,6 +476,15 @@ pub struct _zend_class_iterator_funcs {
470
476
pub type zend_class_iterator_funcs = _zend_class_iterator_funcs ;
471
477
#[ repr( C ) ]
472
478
#[ 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 ) ]
473
488
pub struct _zend_serialize_data {
474
489
_unused : [ u8 ; 0 ] ,
475
490
}
@@ -518,6 +533,7 @@ pub struct _zend_class_mutable_data {
518
533
pub default_properties_table : * mut zval ,
519
534
pub constants_table : * mut HashTable ,
520
535
pub ce_flags : u32 ,
536
+ pub backed_enum_table : * mut HashTable ,
521
537
}
522
538
pub type zend_class_mutable_data = _zend_class_mutable_data ;
523
539
#[ repr( C ) ]
@@ -560,11 +576,11 @@ pub struct _zend_class_entry {
560
576
pub default_static_members_count : :: std:: os:: raw:: c_int ,
561
577
pub default_properties_table : * mut zval ,
562
578
pub default_static_members_table : * mut zval ,
563
- pub static_members_table__ptr : * mut * mut zval ,
579
+ pub static_members_table__ptr : * mut zval ,
564
580
pub function_table : HashTable ,
565
581
pub properties_info : HashTable ,
566
582
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 ,
568
584
pub inheritance_cache : * mut zend_inheritance_cache_entry ,
569
585
pub properties_info_table : * mut * mut _zend_property_info ,
570
586
pub constructor : * mut zend_function ,
@@ -581,6 +597,7 @@ pub struct _zend_class_entry {
581
597
pub __serialize : * mut zend_function ,
582
598
pub __unserialize : * mut zend_function ,
583
599
pub iterator_funcs_ptr : * mut zend_class_iterator_funcs ,
600
+ pub arrayaccess_funcs_ptr : * mut zend_class_arrayaccess_funcs ,
584
601
pub __bindgen_anon_2 : _zend_class_entry__bindgen_ty_2 ,
585
602
pub get_iterator : :: std:: option:: Option <
586
603
unsafe extern "C" fn (
@@ -782,10 +799,10 @@ pub type zend_object_cast_t = ::std::option::Option<
782
799
readobj : * mut zend_object ,
783
800
retval : * mut zval ,
784
801
type_ : :: std:: os:: raw:: c_int ,
785
- ) -> :: std :: os :: raw :: c_int ,
802
+ ) -> zend_result ,
786
803
> ;
787
804
pub 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 ,
789
806
> ;
790
807
pub type zend_object_get_closure_t = :: std:: option:: Option <
791
808
unsafe extern "C" fn (
@@ -794,7 +811,7 @@ pub type zend_object_get_closure_t = ::std::option::Option<
794
811
fptr_ptr : * mut * mut zend_function ,
795
812
obj_ptr : * mut * mut zend_object ,
796
813
check_only : bool ,
797
- ) -> :: std :: os :: raw :: c_int ,
814
+ ) -> zend_result ,
798
815
> ;
799
816
pub type zend_object_get_gc_t = :: std:: option:: Option <
800
817
unsafe extern "C" fn (
@@ -809,7 +826,7 @@ pub type zend_object_do_operation_t = ::std::option::Option<
809
826
result : * mut zval ,
810
827
op1 : * mut zval ,
811
828
op2 : * mut zval ,
812
- ) -> :: std :: os :: raw :: c_int ,
829
+ ) -> zend_result ,
813
830
> ;
814
831
#[ repr( C ) ]
815
832
#[ derive( Debug , Copy , Clone ) ]
@@ -960,13 +977,13 @@ pub struct _zend_op_array {
960
977
pub required_num_args : u32 ,
961
978
pub arg_info : * mut zend_arg_info ,
962
979
pub attributes : * mut HashTable ,
980
+ pub T : u32 ,
981
+ pub run_time_cache__ptr : * mut * mut :: std:: os:: raw:: c_void ,
963
982
pub cache_size : :: std:: os:: raw:: c_int ,
964
983
pub last_var : :: std:: os:: raw:: c_int ,
965
- pub T : u32 ,
966
984
pub last : u32 ,
967
985
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 ,
970
987
pub static_variables : * mut HashTable ,
971
988
pub vars : * mut * mut zend_string ,
972
989
pub refcount : * mut u32 ,
@@ -1000,6 +1017,8 @@ pub struct _zend_internal_function {
1000
1017
pub required_num_args : u32 ,
1001
1018
pub arg_info : * mut zend_internal_arg_info ,
1002
1019
pub attributes : * mut HashTable ,
1020
+ pub T : u32 ,
1021
+ pub run_time_cache__ptr : * mut * mut :: std:: os:: raw:: c_void ,
1003
1022
pub handler : zif_handler ,
1004
1023
pub module : * mut _zend_module_entry ,
1005
1024
pub reserved : [ * mut :: std:: os:: raw:: c_void ; 6usize ] ,
@@ -1027,6 +1046,8 @@ pub struct _zend_function__bindgen_ty_1 {
1027
1046
pub required_num_args : u32 ,
1028
1047
pub arg_info : * mut zend_arg_info ,
1029
1048
pub attributes : * mut HashTable ,
1049
+ pub T : u32 ,
1050
+ pub run_time_cache__ptr : * mut * mut :: std:: os:: raw:: c_void ,
1030
1051
}
1031
1052
#[ repr( C ) ]
1032
1053
pub struct _zend_execute_data {
@@ -1055,6 +1076,15 @@ extern "C" {
1055
1076
}
1056
1077
#[ repr( C ) ]
1057
1078
#[ 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 ) ]
1058
1088
pub struct _zend_stack {
1059
1089
pub size : :: std:: os:: raw:: c_int ,
1060
1090
pub top : :: std:: os:: raw:: c_int ,
@@ -1130,8 +1160,8 @@ pub struct _zend_executor_globals {
1130
1160
pub in_autoload : * mut HashTable ,
1131
1161
pub full_tables_cleanup : bool ,
1132
1162
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 ,
1135
1165
pub hard_timeout : zend_long ,
1136
1166
pub regular_list : HashTable ,
1137
1167
pub persistent_list : HashTable ,
@@ -1175,6 +1205,8 @@ pub struct _zend_executor_globals {
1175
1205
pub record_errors : bool ,
1176
1206
pub num_errors : u32 ,
1177
1207
pub errors : * mut * mut zend_error_info ,
1208
+ pub filename_override : * mut zend_string ,
1209
+ pub lineno_override : zend_long ,
1178
1210
pub reserved : [ * mut :: std:: os:: raw:: c_void ; 6usize ] ,
1179
1211
}
1180
1212
pub type zend_module_entry = _zend_module_entry ;
0 commit comments