@@ -201,6 +201,8 @@ pub type __time_t = ::std::os::raw::c_long;
201201pub type __blksize_t = :: std:: os:: raw:: c_long ;
202202pub type __blkcnt_t = :: std:: os:: raw:: c_long ;
203203pub type __syscall_slong_t = :: std:: os:: raw:: c_long ;
204+ pub type gid_t = __gid_t ;
205+ pub type uid_t = __uid_t ;
204206#[ repr( C ) ]
205207#[ derive( Debug , Copy , Clone ) ]
206208pub struct __sigset_t {
@@ -2265,6 +2267,12 @@ extern "C" {
22652267}
22662268#[ repr( C ) ]
22672269#[ derive( Debug , Copy , Clone ) ]
2270+ pub struct sapi_header_struct {
2271+ pub header : * mut :: std:: os:: raw:: c_char ,
2272+ pub header_len : usize ,
2273+ }
2274+ #[ repr( C ) ]
2275+ #[ derive( Debug , Copy , Clone ) ]
22682276pub struct sapi_headers_struct {
22692277 pub headers : zend_llist ,
22702278 pub http_response_code : :: std:: os:: raw:: c_int ,
@@ -2273,6 +2281,10 @@ pub struct sapi_headers_struct {
22732281 pub http_status_line : * mut :: std:: os:: raw:: c_char ,
22742282}
22752283pub type sapi_post_entry = _sapi_post_entry ;
2284+ pub type sapi_module_struct = _sapi_module_struct ;
2285+ extern "C" {
2286+ pub static mut sapi_module: sapi_module_struct ;
2287+ }
22762288#[ repr( C ) ]
22772289#[ derive( Debug , Copy , Clone ) ]
22782290pub struct sapi_request_info {
@@ -2323,6 +2335,111 @@ pub type sapi_globals_struct = _sapi_globals_struct;
23232335extern "C" {
23242336 pub static mut sapi_globals: sapi_globals_struct ;
23252337}
2338+ pub const sapi_header_op_enum_SAPI_HEADER_REPLACE: sapi_header_op_enum = 0 ;
2339+ pub const sapi_header_op_enum_SAPI_HEADER_ADD: sapi_header_op_enum = 1 ;
2340+ pub const sapi_header_op_enum_SAPI_HEADER_DELETE: sapi_header_op_enum = 2 ;
2341+ pub const sapi_header_op_enum_SAPI_HEADER_DELETE_ALL: sapi_header_op_enum = 3 ;
2342+ pub const sapi_header_op_enum_SAPI_HEADER_SET_STATUS: sapi_header_op_enum = 4 ;
2343+ pub type sapi_header_op_enum = :: std:: os:: raw:: c_uint ;
2344+ #[ repr( C ) ]
2345+ #[ derive( Debug , Copy , Clone ) ]
2346+ pub struct _sapi_module_struct {
2347+ pub name : * mut :: std:: os:: raw:: c_char ,
2348+ pub pretty_name : * mut :: std:: os:: raw:: c_char ,
2349+ pub startup : :: std:: option:: Option <
2350+ unsafe extern "C" fn ( sapi_module : * mut _sapi_module_struct ) -> :: std:: os:: raw:: c_int ,
2351+ > ,
2352+ pub shutdown : :: std:: option:: Option <
2353+ unsafe extern "C" fn ( sapi_module : * mut _sapi_module_struct ) -> :: std:: os:: raw:: c_int ,
2354+ > ,
2355+ pub activate : :: std:: option:: Option < unsafe extern "C" fn ( ) -> :: std:: os:: raw:: c_int > ,
2356+ pub deactivate : :: std:: option:: Option < unsafe extern "C" fn ( ) -> :: std:: os:: raw:: c_int > ,
2357+ pub ub_write : :: std:: option:: Option <
2358+ unsafe extern "C" fn ( str_ : * const :: std:: os:: raw:: c_char , str_length : usize ) -> usize ,
2359+ > ,
2360+ pub flush :
2361+ :: std:: option:: Option < unsafe extern "C" fn ( server_context : * mut :: std:: os:: raw:: c_void ) > ,
2362+ pub get_stat : :: std:: option:: Option < unsafe extern "C" fn ( ) -> * mut zend_stat_t > ,
2363+ pub getenv : :: std:: option:: Option <
2364+ unsafe extern "C" fn (
2365+ name : * const :: std:: os:: raw:: c_char ,
2366+ name_len : usize ,
2367+ ) -> * mut :: std:: os:: raw:: c_char ,
2368+ > ,
2369+ pub sapi_error : :: std:: option:: Option <
2370+ unsafe extern "C" fn (
2371+ type_ : :: std:: os:: raw:: c_int ,
2372+ error_msg : * const :: std:: os:: raw:: c_char ,
2373+ ...
2374+ ) ,
2375+ > ,
2376+ pub header_handler : :: std:: option:: Option <
2377+ unsafe extern "C" fn (
2378+ sapi_header : * mut sapi_header_struct ,
2379+ op : sapi_header_op_enum ,
2380+ sapi_headers : * mut sapi_headers_struct ,
2381+ ) -> :: std:: os:: raw:: c_int ,
2382+ > ,
2383+ pub send_headers : :: std:: option:: Option <
2384+ unsafe extern "C" fn ( sapi_headers : * mut sapi_headers_struct ) -> :: std:: os:: raw:: c_int ,
2385+ > ,
2386+ pub send_header : :: std:: option:: Option <
2387+ unsafe extern "C" fn (
2388+ sapi_header : * mut sapi_header_struct ,
2389+ server_context : * mut :: std:: os:: raw:: c_void ,
2390+ ) ,
2391+ > ,
2392+ pub read_post : :: std:: option:: Option <
2393+ unsafe extern "C" fn ( buffer : * mut :: std:: os:: raw:: c_char , count_bytes : usize ) -> usize ,
2394+ > ,
2395+ pub read_cookies : :: std:: option:: Option < unsafe extern "C" fn ( ) -> * mut :: std:: os:: raw:: c_char > ,
2396+ pub register_server_variables :
2397+ :: std:: option:: Option < unsafe extern "C" fn ( track_vars_array : * mut zval ) > ,
2398+ pub log_message : :: std:: option:: Option <
2399+ unsafe extern "C" fn (
2400+ message : * const :: std:: os:: raw:: c_char ,
2401+ syslog_type_int : :: std:: os:: raw:: c_int ,
2402+ ) ,
2403+ > ,
2404+ pub get_request_time :
2405+ :: std:: option:: Option < unsafe extern "C" fn ( request_time : * mut f64 ) -> zend_result > ,
2406+ pub terminate_process : :: std:: option:: Option < unsafe extern "C" fn ( ) > ,
2407+ pub php_ini_path_override : * mut :: std:: os:: raw:: c_char ,
2408+ pub default_post_reader : :: std:: option:: Option < unsafe extern "C" fn ( ) > ,
2409+ pub treat_data : :: std:: option:: Option <
2410+ unsafe extern "C" fn (
2411+ arg : :: std:: os:: raw:: c_int ,
2412+ str_ : * mut :: std:: os:: raw:: c_char ,
2413+ destArray : * mut zval ,
2414+ ) ,
2415+ > ,
2416+ pub executable_location : * mut :: std:: os:: raw:: c_char ,
2417+ pub php_ini_ignore : :: std:: os:: raw:: c_int ,
2418+ pub php_ini_ignore_cwd : :: std:: os:: raw:: c_int ,
2419+ pub get_fd : :: std:: option:: Option <
2420+ unsafe extern "C" fn ( fd : * mut :: std:: os:: raw:: c_int ) -> :: std:: os:: raw:: c_int ,
2421+ > ,
2422+ pub force_http_10 : :: std:: option:: Option < unsafe extern "C" fn ( ) -> :: std:: os:: raw:: c_int > ,
2423+ pub get_target_uid :
2424+ :: std:: option:: Option < unsafe extern "C" fn ( arg1 : * mut uid_t ) -> :: std:: os:: raw:: c_int > ,
2425+ pub get_target_gid :
2426+ :: std:: option:: Option < unsafe extern "C" fn ( arg1 : * mut gid_t ) -> :: std:: os:: raw:: c_int > ,
2427+ pub input_filter : :: std:: option:: Option <
2428+ unsafe extern "C" fn (
2429+ arg : :: std:: os:: raw:: c_int ,
2430+ var : * const :: std:: os:: raw:: c_char ,
2431+ val : * mut * mut :: std:: os:: raw:: c_char ,
2432+ val_len : usize ,
2433+ new_val_len : * mut usize ,
2434+ ) -> :: std:: os:: raw:: c_uint ,
2435+ > ,
2436+ pub ini_defaults :
2437+ :: std:: option:: Option < unsafe extern "C" fn ( configuration_hash : * mut HashTable ) > ,
2438+ pub phpinfo_as_text : :: std:: os:: raw:: c_int ,
2439+ pub ini_entries : * const :: std:: os:: raw:: c_char ,
2440+ pub additional_functions : * const zend_function_entry ,
2441+ pub input_filter_init : :: std:: option:: Option < unsafe extern "C" fn ( ) -> :: std:: os:: raw:: c_uint > ,
2442+ }
23262443#[ repr( C ) ]
23272444#[ derive( Debug , Copy , Clone ) ]
23282445pub struct _sapi_post_entry {
0 commit comments