1
1
/* automatically generated by rust-bindgen 0.65.1 */
2
2
3
- pub const ZEND_DEBUG : u32 = 0 ;
3
+ pub const ZEND_DEBUG : u32 = 1 ;
4
4
pub const _ZEND_TYPE_NAME_BIT: u32 = 16777216 ;
5
5
pub const _ZEND_TYPE_NULLABLE_BIT: u32 = 2 ;
6
6
pub const HT_MIN_SIZE : u32 = 8 ;
@@ -69,6 +69,7 @@ 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 ;
72
73
pub const ZEND_ACC_RESOLVED_PARENT : u32 = 131072 ;
73
74
pub const ZEND_ACC_RESOLVED_INTERFACES : u32 = 262144 ;
74
75
pub const ZEND_ACC_UNRESOLVED_VARIANCE : u32 = 524288 ;
@@ -97,7 +98,7 @@ pub const ZEND_EVAL_CODE: u32 = 4;
97
98
pub const ZEND_ISEMPTY : u32 = 1 ;
98
99
pub const _ZEND_SEND_MODE_SHIFT: u32 = 25 ;
99
100
pub 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 ;
101
102
pub const USING_ZTS : u32 = 0 ;
102
103
pub const MAY_BE_BOOL : u32 = 12 ;
103
104
pub const MAY_BE_ANY : u32 = 1022 ;
@@ -236,7 +237,7 @@ pub struct _zend_array {
236
237
pub gc : zend_refcounted_h ,
237
238
pub u : _zend_array__bindgen_ty_1 ,
238
239
pub nTableMask : u32 ,
239
- pub __bindgen_anon_1 : _zend_array__bindgen_ty_2 ,
240
+ pub arData : * mut Bucket ,
240
241
pub nNumUsed : u32 ,
241
242
pub nNumOfElements : u32 ,
242
243
pub nTableSize : u32 ,
@@ -258,13 +259,6 @@ pub struct _zend_array__bindgen_ty_1__bindgen_ty_1 {
258
259
pub nIteratorsCount : zend_uchar ,
259
260
pub _unused2 : zend_uchar ,
260
261
}
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
- }
268
262
pub type HashPosition = u32 ;
269
263
#[ repr( C ) ]
270
264
#[ derive( Debug , Copy , Clone ) ]
@@ -308,10 +302,22 @@ pub struct _zend_ast_ref {
308
302
pub gc : zend_refcounted_h ,
309
303
}
310
304
extern "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 ;
312
312
}
313
313
extern "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
+ ) ;
315
321
}
316
322
extern "C" {
317
323
pub fn __zend_malloc ( len : usize ) -> * mut :: std:: os:: raw:: c_void ;
@@ -374,7 +380,7 @@ extern "C" {
374
380
pub fn zend_hash_get_current_key_zval_ex (
375
381
ht : * const HashTable ,
376
382
key : * mut zval ,
377
- pos : * const HashPosition ,
383
+ pos : * mut HashPosition ,
378
384
) ;
379
385
}
380
386
extern "C" {
@@ -464,15 +470,6 @@ pub struct _zend_class_iterator_funcs {
464
470
pub type zend_class_iterator_funcs = _zend_class_iterator_funcs ;
465
471
#[ repr( C ) ]
466
472
#[ 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 ) ]
476
473
pub struct _zend_serialize_data {
477
474
_unused : [ u8 ; 0 ] ,
478
475
}
@@ -521,7 +518,6 @@ pub struct _zend_class_mutable_data {
521
518
pub default_properties_table : * mut zval ,
522
519
pub constants_table : * mut HashTable ,
523
520
pub ce_flags : u32 ,
524
- pub backed_enum_table : * mut HashTable ,
525
521
}
526
522
pub type zend_class_mutable_data = _zend_class_mutable_data ;
527
523
#[ repr( C ) ]
@@ -564,11 +560,11 @@ pub struct _zend_class_entry {
564
560
pub default_static_members_count : :: std:: os:: raw:: c_int ,
565
561
pub default_properties_table : * mut zval ,
566
562
pub default_static_members_table : * mut zval ,
567
- pub static_members_table__ptr : * mut zval ,
563
+ pub static_members_table__ptr : * mut * mut zval ,
568
564
pub function_table : HashTable ,
569
565
pub properties_info : HashTable ,
570
566
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 ,
572
568
pub inheritance_cache : * mut zend_inheritance_cache_entry ,
573
569
pub properties_info_table : * mut * mut _zend_property_info ,
574
570
pub constructor : * mut zend_function ,
@@ -585,7 +581,6 @@ pub struct _zend_class_entry {
585
581
pub __serialize : * mut zend_function ,
586
582
pub __unserialize : * mut zend_function ,
587
583
pub iterator_funcs_ptr : * mut zend_class_iterator_funcs ,
588
- pub arrayaccess_funcs_ptr : * mut zend_class_arrayaccess_funcs ,
589
584
pub __bindgen_anon_2 : _zend_class_entry__bindgen_ty_2 ,
590
585
pub get_iterator : :: std:: option:: Option <
591
586
unsafe extern "C" fn (
@@ -787,10 +782,10 @@ pub type zend_object_cast_t = ::std::option::Option<
787
782
readobj : * mut zend_object ,
788
783
retval : * mut zval ,
789
784
type_ : :: std:: os:: raw:: c_int ,
790
- ) -> zend_result ,
785
+ ) -> :: std :: os :: raw :: c_int ,
791
786
> ;
792
787
pub 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 ,
794
789
> ;
795
790
pub type zend_object_get_closure_t = :: std:: option:: Option <
796
791
unsafe extern "C" fn (
@@ -799,7 +794,7 @@ pub type zend_object_get_closure_t = ::std::option::Option<
799
794
fptr_ptr : * mut * mut zend_function ,
800
795
obj_ptr : * mut * mut zend_object ,
801
796
check_only : bool ,
802
- ) -> zend_result ,
797
+ ) -> :: std :: os :: raw :: c_int ,
803
798
> ;
804
799
pub type zend_object_get_gc_t = :: std:: option:: Option <
805
800
unsafe extern "C" fn (
@@ -814,7 +809,7 @@ pub type zend_object_do_operation_t = ::std::option::Option<
814
809
result : * mut zval ,
815
810
op1 : * mut zval ,
816
811
op2 : * mut zval ,
817
- ) -> zend_result ,
812
+ ) -> :: std :: os :: raw :: c_int ,
818
813
> ;
819
814
#[ repr( C ) ]
820
815
#[ derive( Debug , Copy , Clone ) ]
@@ -965,13 +960,13 @@ pub struct _zend_op_array {
965
960
pub required_num_args : u32 ,
966
961
pub arg_info : * mut zend_arg_info ,
967
962
pub attributes : * mut HashTable ,
968
- pub T : u32 ,
969
- pub run_time_cache__ptr : * mut * mut :: std:: os:: raw:: c_void ,
970
963
pub cache_size : :: std:: os:: raw:: c_int ,
971
964
pub last_var : :: std:: os:: raw:: c_int ,
965
+ pub T : u32 ,
972
966
pub last : u32 ,
973
967
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 ,
975
970
pub static_variables : * mut HashTable ,
976
971
pub vars : * mut * mut zend_string ,
977
972
pub refcount : * mut u32 ,
@@ -1005,8 +1000,6 @@ pub struct _zend_internal_function {
1005
1000
pub required_num_args : u32 ,
1006
1001
pub arg_info : * mut zend_internal_arg_info ,
1007
1002
pub attributes : * mut HashTable ,
1008
- pub T : u32 ,
1009
- pub run_time_cache__ptr : * mut * mut :: std:: os:: raw:: c_void ,
1010
1003
pub handler : zif_handler ,
1011
1004
pub module : * mut _zend_module_entry ,
1012
1005
pub reserved : [ * mut :: std:: os:: raw:: c_void ; 6usize ] ,
@@ -1034,8 +1027,6 @@ pub struct _zend_function__bindgen_ty_1 {
1034
1027
pub required_num_args : u32 ,
1035
1028
pub arg_info : * mut zend_arg_info ,
1036
1029
pub attributes : * mut HashTable ,
1037
- pub T : u32 ,
1038
- pub run_time_cache__ptr : * mut * mut :: std:: os:: raw:: c_void ,
1039
1030
}
1040
1031
#[ repr( C ) ]
1041
1032
pub struct _zend_execute_data {
@@ -1064,15 +1055,6 @@ extern "C" {
1064
1055
}
1065
1056
#[ repr( C ) ]
1066
1057
#[ 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 ) ]
1076
1058
pub struct _zend_stack {
1077
1059
pub size : :: std:: os:: raw:: c_int ,
1078
1060
pub top : :: std:: os:: raw:: c_int ,
@@ -1148,8 +1130,8 @@ pub struct _zend_executor_globals {
1148
1130
pub in_autoload : * mut HashTable ,
1149
1131
pub full_tables_cleanup : bool ,
1150
1132
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 ,
1153
1135
pub hard_timeout : zend_long ,
1154
1136
pub regular_list : HashTable ,
1155
1137
pub persistent_list : HashTable ,
@@ -1193,8 +1175,6 @@ pub struct _zend_executor_globals {
1193
1175
pub record_errors : bool ,
1194
1176
pub num_errors : u32 ,
1195
1177
pub errors : * mut * mut zend_error_info ,
1196
- pub filename_override : * mut zend_string ,
1197
- pub lineno_override : zend_long ,
1198
1178
pub reserved : [ * mut :: std:: os:: raw:: c_void ; 6usize ] ,
1199
1179
}
1200
1180
pub type zend_module_entry = _zend_module_entry ;
0 commit comments