@@ -204,11 +204,11 @@ pub type __uid_t = ::std::os::raw::c_uint;
204204pub type __gid_t = :: std:: os:: raw:: c_uint ;
205205pub type __ino_t = :: std:: os:: raw:: c_ulong ;
206206pub type __mode_t = :: std:: os:: raw:: c_uint ;
207- pub type __nlink_t = :: std:: os:: raw:: c_ulong ;
207+ pub type __nlink_t = :: std:: os:: raw:: c_uint ;
208208pub type __off_t = :: std:: os:: raw:: c_long ;
209209pub type __off64_t = :: std:: os:: raw:: c_long ;
210210pub type __time_t = :: std:: os:: raw:: c_long ;
211- pub type __blksize_t = :: std:: os:: raw:: c_long ;
211+ pub type __blksize_t = :: std:: os:: raw:: c_int ;
212212pub type __blkcnt_t = :: std:: os:: raw:: c_long ;
213213pub type __syscall_slong_t = :: std:: os:: raw:: c_long ;
214214pub type gid_t = __gid_t ;
@@ -293,6 +293,7 @@ pub type zend_object = _zend_object;
293293pub type zend_resource = _zend_resource ;
294294pub type zend_reference = _zend_reference ;
295295pub type zend_ast_ref = _zend_ast_ref ;
296+ pub type zend_ast = _zend_ast ;
296297pub type dtor_func_t = :: std:: option:: Option < unsafe extern "C" fn ( pDest : * mut zval ) > ;
297298#[ repr( C ) ]
298299#[ derive( Debug , Copy , Clone ) ]
@@ -697,6 +698,16 @@ extern "C" {
697698 len : usize ,
698699 ) -> * mut :: std:: os:: raw:: c_void ;
699700}
701+ pub type zend_ast_kind = u16 ;
702+ pub type zend_ast_attr = u16 ;
703+ #[ repr( C ) ]
704+ #[ derive( Debug , Copy , Clone ) ]
705+ pub struct _zend_ast {
706+ pub kind : zend_ast_kind ,
707+ pub attr : zend_ast_attr ,
708+ pub lineno : u32 ,
709+ pub child : [ * mut zend_ast ; 1usize ] ,
710+ }
700711extern "C" {
701712 pub fn gc_possible_root ( ref_ : * mut zend_refcounted ) ;
702713}
@@ -768,19 +779,20 @@ pub type zend_class_arrayaccess_funcs = _zend_class_arrayaccess_funcs;
768779pub struct stat {
769780 pub st_dev : __dev_t ,
770781 pub st_ino : __ino_t ,
771- pub st_nlink : __nlink_t ,
772782 pub st_mode : __mode_t ,
783+ pub st_nlink : __nlink_t ,
773784 pub st_uid : __uid_t ,
774785 pub st_gid : __gid_t ,
775- pub __pad0 : :: std:: os:: raw:: c_int ,
776786 pub st_rdev : __dev_t ,
787+ pub __pad1 : __dev_t ,
777788 pub st_size : __off_t ,
778789 pub st_blksize : __blksize_t ,
790+ pub __pad2 : :: std:: os:: raw:: c_int ,
779791 pub st_blocks : __blkcnt_t ,
780792 pub st_atim : timespec ,
781793 pub st_mtim : timespec ,
782794 pub st_ctim : timespec ,
783- pub __glibc_reserved : [ __syscall_slong_t ; 3usize ] ,
795+ pub __glibc_reserved : [ :: std :: os :: raw :: c_int ; 2usize ] ,
784796}
785797pub type zend_stream_fsizer_t =
786798 :: std:: option:: Option < unsafe extern "C" fn ( handle : * mut :: std:: os:: raw:: c_void ) -> usize > ;
@@ -1266,6 +1278,24 @@ pub union _znode_op {
12661278}
12671279pub type znode_op = _znode_op ;
12681280#[ repr( C ) ]
1281+ #[ derive( Debug , Copy , Clone ) ]
1282+ pub struct _zend_declarables {
1283+ pub ticks : zend_long ,
1284+ }
1285+ pub type zend_declarables = _zend_declarables ;
1286+ #[ repr( C ) ]
1287+ pub struct _zend_file_context {
1288+ pub declarables : zend_declarables ,
1289+ pub current_namespace : * mut zend_string ,
1290+ pub in_namespace : bool ,
1291+ pub has_bracketed_namespaces : bool ,
1292+ pub imports : * mut HashTable ,
1293+ pub imports_function : * mut HashTable ,
1294+ pub imports_const : * mut HashTable ,
1295+ pub seen_symbols : HashTable ,
1296+ }
1297+ pub type zend_file_context = _zend_file_context ;
1298+ #[ repr( C ) ]
12691299#[ derive( Copy , Clone ) ]
12701300pub struct _zend_op {
12711301 pub handler : * const :: std:: os:: raw:: c_void ,
@@ -1281,6 +1311,16 @@ pub struct _zend_op {
12811311}
12821312#[ repr( C ) ]
12831313#[ derive( Debug , Copy , Clone ) ]
1314+ pub struct _zend_brk_cont_element {
1315+ pub start : :: std:: os:: raw:: c_int ,
1316+ pub cont : :: std:: os:: raw:: c_int ,
1317+ pub brk : :: std:: os:: raw:: c_int ,
1318+ pub parent : :: std:: os:: raw:: c_int ,
1319+ pub is_switch : bool ,
1320+ }
1321+ pub type zend_brk_cont_element = _zend_brk_cont_element ;
1322+ #[ repr( C ) ]
1323+ #[ derive( Debug , Copy , Clone ) ]
12841324pub struct _zend_try_catch_element {
12851325 pub try_op : u32 ,
12861326 pub catch_op : u32 ,
@@ -1298,6 +1338,20 @@ pub struct _zend_live_range {
12981338pub type zend_live_range = _zend_live_range ;
12991339#[ repr( C ) ]
13001340#[ derive( Debug , Copy , Clone ) ]
1341+ pub struct _zend_oparray_context {
1342+ pub opcodes_size : u32 ,
1343+ pub vars_size : :: std:: os:: raw:: c_int ,
1344+ pub literals_size : :: std:: os:: raw:: c_int ,
1345+ pub fast_call_var : u32 ,
1346+ pub try_catch_offset : u32 ,
1347+ pub current_brk_cont : :: std:: os:: raw:: c_int ,
1348+ pub last_brk_cont : :: std:: os:: raw:: c_int ,
1349+ pub brk_cont_array : * mut zend_brk_cont_element ,
1350+ pub labels : * mut HashTable ,
1351+ }
1352+ pub type zend_oparray_context = _zend_oparray_context ;
1353+ #[ repr( C ) ]
1354+ #[ derive( Debug , Copy , Clone ) ]
13011355pub struct _zend_property_info {
13021356 pub offset : u32 ,
13031357 pub flags : u32 ,
@@ -1420,7 +1474,7 @@ pub struct _zend_execute_data {
14201474 pub run_time_cache : * mut * mut :: std:: os:: raw:: c_void ,
14211475 pub extra_named_params : * mut zend_array ,
14221476}
1423- pub type __jmp_buf = [ :: std:: os:: raw:: c_long ; 8usize ] ;
1477+ pub type __jmp_buf = [ :: std:: os:: raw:: c_ulonglong ; 22usize ] ;
14241478#[ repr( C ) ]
14251479#[ derive( Debug , Copy , Clone ) ]
14261480pub struct __jmp_buf_tag {
@@ -1429,7 +1483,60 @@ pub struct __jmp_buf_tag {
14291483 pub __saved_mask : __sigset_t ,
14301484}
14311485pub type jmp_buf = [ __jmp_buf_tag ; 1usize ] ;
1486+ pub type zend_compiler_globals = _zend_compiler_globals ;
14321487pub type zend_executor_globals = _zend_executor_globals ;
1488+ #[ repr( C ) ]
1489+ pub struct _zend_compiler_globals {
1490+ pub loop_var_stack : zend_stack ,
1491+ pub active_class_entry : * mut zend_class_entry ,
1492+ pub compiled_filename : * mut zend_string ,
1493+ pub zend_lineno : :: std:: os:: raw:: c_int ,
1494+ pub active_op_array : * mut zend_op_array ,
1495+ pub function_table : * mut HashTable ,
1496+ pub class_table : * mut HashTable ,
1497+ pub auto_globals : * mut HashTable ,
1498+ pub parse_error : u8 ,
1499+ pub in_compilation : bool ,
1500+ pub short_tags : bool ,
1501+ pub unclean_shutdown : bool ,
1502+ pub ini_parser_unbuffered_errors : bool ,
1503+ pub open_files : zend_llist ,
1504+ pub ini_parser_param : * mut _zend_ini_parser_param ,
1505+ pub skip_shebang : bool ,
1506+ pub increment_lineno : bool ,
1507+ pub variable_width_locale : bool ,
1508+ pub ascii_compatible_locale : bool ,
1509+ pub doc_comment : * mut zend_string ,
1510+ pub extra_fn_flags : u32 ,
1511+ pub compiler_options : u32 ,
1512+ pub context : zend_oparray_context ,
1513+ pub file_context : zend_file_context ,
1514+ pub arena : * mut zend_arena ,
1515+ pub interned_strings : HashTable ,
1516+ pub script_encoding_list : * mut * const zend_encoding ,
1517+ pub script_encoding_list_size : usize ,
1518+ pub multibyte : bool ,
1519+ pub detect_unicode : bool ,
1520+ pub encoding_declared : bool ,
1521+ pub ast : * mut zend_ast ,
1522+ pub ast_arena : * mut zend_arena ,
1523+ pub delayed_oplines_stack : zend_stack ,
1524+ pub memoized_exprs : * mut HashTable ,
1525+ pub memoize_mode : zend_memoize_mode ,
1526+ pub map_ptr_real_base : * mut :: std:: os:: raw:: c_void ,
1527+ pub map_ptr_base : * mut :: std:: os:: raw:: c_void ,
1528+ pub map_ptr_size : usize ,
1529+ pub map_ptr_last : usize ,
1530+ pub delayed_variance_obligations : * mut HashTable ,
1531+ pub delayed_autoloads : * mut HashTable ,
1532+ pub unlinked_uses : * mut HashTable ,
1533+ pub current_linking_class : * mut zend_class_entry ,
1534+ pub rtd_key_counter : u32 ,
1535+ pub short_circuiting_opnums : zend_stack ,
1536+ }
1537+ extern "C" {
1538+ pub static mut compiler_globals: _zend_compiler_globals ;
1539+ }
14331540extern "C" {
14341541 pub static mut executor_globals: zend_executor_globals ;
14351542}
@@ -1477,6 +1584,20 @@ extern "C" {
14771584}
14781585#[ repr( C ) ]
14791586#[ derive( Debug , Copy , Clone ) ]
1587+ pub struct _zend_encoding {
1588+ _unused : [ u8 ; 0 ] ,
1589+ }
1590+ pub type zend_encoding = _zend_encoding ;
1591+ pub type zend_arena = _zend_arena ;
1592+ #[ repr( C ) ]
1593+ #[ derive( Debug , Copy , Clone ) ]
1594+ pub struct _zend_arena {
1595+ pub ptr : * mut :: std:: os:: raw:: c_char ,
1596+ pub end : * mut :: std:: os:: raw:: c_char ,
1597+ pub prev : * mut zend_arena ,
1598+ }
1599+ #[ repr( C ) ]
1600+ #[ derive( Debug , Copy , Clone ) ]
14801601pub struct _zend_call_stack {
14811602 pub base : * mut :: std:: os:: raw:: c_void ,
14821603 pub max_size : usize ,
@@ -1496,6 +1617,10 @@ pub struct _zend_fiber {
14961617 _unused : [ u8 ; 0 ] ,
14971618}
14981619pub type zend_fiber = _zend_fiber ;
1620+ pub const zend_memoize_mode_ZEND_MEMOIZE_NONE: zend_memoize_mode = 0 ;
1621+ pub const zend_memoize_mode_ZEND_MEMOIZE_COMPILE: zend_memoize_mode = 1 ;
1622+ pub const zend_memoize_mode_ZEND_MEMOIZE_FETCH: zend_memoize_mode = 2 ;
1623+ pub type zend_memoize_mode = :: std:: os:: raw:: c_uint ;
14991624#[ repr( C ) ]
15001625pub struct _zend_executor_globals {
15011626 pub uninitialized_zval : zval ,
@@ -2391,6 +2516,21 @@ extern "C" {
23912516 module_number : :: std:: os:: raw:: c_int ,
23922517 ) -> zend_result ;
23932518}
2519+ pub type zend_ini_parser_cb_t = :: std:: option:: Option <
2520+ unsafe extern "C" fn (
2521+ arg1 : * mut zval ,
2522+ arg2 : * mut zval ,
2523+ arg3 : * mut zval ,
2524+ callback_type : :: std:: os:: raw:: c_int ,
2525+ arg : * mut :: std:: os:: raw:: c_void ,
2526+ ) ,
2527+ > ;
2528+ #[ repr( C ) ]
2529+ #[ derive( Debug , Copy , Clone ) ]
2530+ pub struct _zend_ini_parser_param {
2531+ pub ini_parser_cb : zend_ini_parser_cb_t ,
2532+ pub arg : * mut :: std:: os:: raw:: c_void ,
2533+ }
23942534extern "C" {
23952535 pub fn zend_register_bool_constant (
23962536 name : * const :: std:: os:: raw:: c_char ,
0 commit comments