@@ -2336,117 +2336,6 @@ extern "C" {
2336
2336
module_number : :: std:: os:: raw:: c_int ,
2337
2337
) ;
2338
2338
}
2339
- extern "C" {
2340
- pub fn php_info_print_table_header ( num_cols : :: std:: os:: raw:: c_int , ...) ;
2341
- }
2342
- extern "C" {
2343
- pub fn php_info_print_table_row ( num_cols : :: std:: os:: raw:: c_int , ...) ;
2344
- }
2345
- extern "C" {
2346
- pub fn php_info_print_table_start ( ) ;
2347
- }
2348
- extern "C" {
2349
- pub fn php_info_print_table_end ( ) ;
2350
- }
2351
- #[ repr( C ) ]
2352
- #[ derive( Debug , Copy , Clone ) ]
2353
- pub struct hostent {
2354
- pub h_name : * mut :: std:: os:: raw:: c_char ,
2355
- pub h_aliases : * mut * mut :: std:: os:: raw:: c_char ,
2356
- pub h_addrtype : :: std:: os:: raw:: c_int ,
2357
- pub h_length : :: std:: os:: raw:: c_int ,
2358
- pub h_addr_list : * mut * mut :: std:: os:: raw:: c_char ,
2359
- }
2360
- #[ repr( C ) ]
2361
- #[ derive( Debug , Copy , Clone ) ]
2362
- pub struct php_file_globals {
2363
- pub pclose_ret : :: std:: os:: raw:: c_int ,
2364
- pub def_chunk_size : usize ,
2365
- pub auto_detect_line_endings : bool ,
2366
- pub default_socket_timeout : zend_long ,
2367
- pub user_agent : * mut :: std:: os:: raw:: c_char ,
2368
- pub from_address : * mut :: std:: os:: raw:: c_char ,
2369
- pub user_stream_current_filename : * const :: std:: os:: raw:: c_char ,
2370
- pub default_context : * mut php_stream_context ,
2371
- pub stream_wrappers : * mut HashTable ,
2372
- pub stream_filters : * mut HashTable ,
2373
- pub wrapper_errors : * mut HashTable ,
2374
- pub pclose_wait : :: std:: os:: raw:: c_int ,
2375
- pub tmp_host_info : hostent ,
2376
- pub tmp_host_buf : * mut :: std:: os:: raw:: c_char ,
2377
- pub tmp_host_buf_len : usize ,
2378
- }
2379
- extern "C" {
2380
- pub static mut file_globals: php_file_globals ;
2381
- }
2382
- extern "C" {
2383
- pub static mut zend_ce_throwable: * mut zend_class_entry ;
2384
- }
2385
- extern "C" {
2386
- pub static mut zend_ce_exception: * mut zend_class_entry ;
2387
- }
2388
- extern "C" {
2389
- pub static mut zend_ce_error_exception: * mut zend_class_entry ;
2390
- }
2391
- extern "C" {
2392
- pub static mut zend_ce_compile_error: * mut zend_class_entry ;
2393
- }
2394
- extern "C" {
2395
- pub static mut zend_ce_parse_error: * mut zend_class_entry ;
2396
- }
2397
- extern "C" {
2398
- pub static mut zend_ce_type_error: * mut zend_class_entry ;
2399
- }
2400
- extern "C" {
2401
- pub static mut zend_ce_argument_count_error: * mut zend_class_entry ;
2402
- }
2403
- extern "C" {
2404
- pub static mut zend_ce_value_error: * mut zend_class_entry ;
2405
- }
2406
- extern "C" {
2407
- pub static mut zend_ce_arithmetic_error: * mut zend_class_entry ;
2408
- }
2409
- extern "C" {
2410
- pub static mut zend_ce_division_by_zero_error: * mut zend_class_entry ;
2411
- }
2412
- extern "C" {
2413
- pub static mut zend_ce_unhandled_match_error: * mut zend_class_entry ;
2414
- }
2415
- extern "C" {
2416
- pub fn zend_throw_exception_ex (
2417
- exception_ce : * mut zend_class_entry ,
2418
- code : zend_long ,
2419
- format : * const :: std:: os:: raw:: c_char ,
2420
- ...
2421
- ) -> * mut zend_object ;
2422
- }
2423
- extern "C" {
2424
- pub fn zend_throw_exception_object ( exception : * mut zval ) ;
2425
- }
2426
- extern "C" {
2427
- pub fn zend_do_implement_interface ( ce : * mut zend_class_entry , iface : * mut zend_class_entry ) ;
2428
- }
2429
- extern "C" {
2430
- pub static mut zend_ce_traversable: * mut zend_class_entry ;
2431
- }
2432
- extern "C" {
2433
- pub static mut zend_ce_aggregate: * mut zend_class_entry ;
2434
- }
2435
- extern "C" {
2436
- pub static mut zend_ce_iterator: * mut zend_class_entry ;
2437
- }
2438
- extern "C" {
2439
- pub static mut zend_ce_arrayaccess: * mut zend_class_entry ;
2440
- }
2441
- extern "C" {
2442
- pub static mut zend_ce_serializable: * mut zend_class_entry ;
2443
- }
2444
- extern "C" {
2445
- pub static mut zend_ce_countable: * mut zend_class_entry ;
2446
- }
2447
- extern "C" {
2448
- pub static mut zend_ce_stringable: * mut zend_class_entry ;
2449
- }
2450
2339
#[ repr( C ) ]
2451
2340
#[ derive( Debug , Copy , Clone ) ]
2452
2341
pub struct sapi_header_struct {
@@ -2641,3 +2530,132 @@ pub struct _sapi_post_entry {
2641
2530
) ,
2642
2531
> ,
2643
2532
}
2533
+ extern "C" {
2534
+ pub fn php_request_startup ( ) -> zend_result ;
2535
+ }
2536
+ extern "C" {
2537
+ pub fn php_request_shutdown ( dummy : * mut :: std:: os:: raw:: c_void ) ;
2538
+ }
2539
+ extern "C" {
2540
+ pub fn php_module_startup (
2541
+ sf : * mut sapi_module_struct ,
2542
+ additional_module : * mut zend_module_entry ,
2543
+ ) -> zend_result ;
2544
+ }
2545
+ extern "C" {
2546
+ pub fn php_module_shutdown ( ) ;
2547
+ }
2548
+ extern "C" {
2549
+ pub fn php_execute_script ( primary_file : * mut zend_file_handle ) -> bool ;
2550
+ }
2551
+ extern "C" {
2552
+ pub fn php_info_print_table_header ( num_cols : :: std:: os:: raw:: c_int , ...) ;
2553
+ }
2554
+ extern "C" {
2555
+ pub fn php_info_print_table_row ( num_cols : :: std:: os:: raw:: c_int , ...) ;
2556
+ }
2557
+ extern "C" {
2558
+ pub fn php_info_print_table_start ( ) ;
2559
+ }
2560
+ extern "C" {
2561
+ pub fn php_info_print_table_end ( ) ;
2562
+ }
2563
+ #[ repr( C ) ]
2564
+ #[ derive( Debug , Copy , Clone ) ]
2565
+ pub struct hostent {
2566
+ pub h_name : * mut :: std:: os:: raw:: c_char ,
2567
+ pub h_aliases : * mut * mut :: std:: os:: raw:: c_char ,
2568
+ pub h_addrtype : :: std:: os:: raw:: c_int ,
2569
+ pub h_length : :: std:: os:: raw:: c_int ,
2570
+ pub h_addr_list : * mut * mut :: std:: os:: raw:: c_char ,
2571
+ }
2572
+ #[ repr( C ) ]
2573
+ #[ derive( Debug , Copy , Clone ) ]
2574
+ pub struct php_file_globals {
2575
+ pub pclose_ret : :: std:: os:: raw:: c_int ,
2576
+ pub def_chunk_size : usize ,
2577
+ pub auto_detect_line_endings : bool ,
2578
+ pub default_socket_timeout : zend_long ,
2579
+ pub user_agent : * mut :: std:: os:: raw:: c_char ,
2580
+ pub from_address : * mut :: std:: os:: raw:: c_char ,
2581
+ pub user_stream_current_filename : * const :: std:: os:: raw:: c_char ,
2582
+ pub default_context : * mut php_stream_context ,
2583
+ pub stream_wrappers : * mut HashTable ,
2584
+ pub stream_filters : * mut HashTable ,
2585
+ pub wrapper_errors : * mut HashTable ,
2586
+ pub pclose_wait : :: std:: os:: raw:: c_int ,
2587
+ pub tmp_host_info : hostent ,
2588
+ pub tmp_host_buf : * mut :: std:: os:: raw:: c_char ,
2589
+ pub tmp_host_buf_len : usize ,
2590
+ }
2591
+ extern "C" {
2592
+ pub static mut file_globals: php_file_globals ;
2593
+ }
2594
+ extern "C" {
2595
+ pub static mut zend_ce_throwable: * mut zend_class_entry ;
2596
+ }
2597
+ extern "C" {
2598
+ pub static mut zend_ce_exception: * mut zend_class_entry ;
2599
+ }
2600
+ extern "C" {
2601
+ pub static mut zend_ce_error_exception: * mut zend_class_entry ;
2602
+ }
2603
+ extern "C" {
2604
+ pub static mut zend_ce_compile_error: * mut zend_class_entry ;
2605
+ }
2606
+ extern "C" {
2607
+ pub static mut zend_ce_parse_error: * mut zend_class_entry ;
2608
+ }
2609
+ extern "C" {
2610
+ pub static mut zend_ce_type_error: * mut zend_class_entry ;
2611
+ }
2612
+ extern "C" {
2613
+ pub static mut zend_ce_argument_count_error: * mut zend_class_entry ;
2614
+ }
2615
+ extern "C" {
2616
+ pub static mut zend_ce_value_error: * mut zend_class_entry ;
2617
+ }
2618
+ extern "C" {
2619
+ pub static mut zend_ce_arithmetic_error: * mut zend_class_entry ;
2620
+ }
2621
+ extern "C" {
2622
+ pub static mut zend_ce_division_by_zero_error: * mut zend_class_entry ;
2623
+ }
2624
+ extern "C" {
2625
+ pub static mut zend_ce_unhandled_match_error: * mut zend_class_entry ;
2626
+ }
2627
+ extern "C" {
2628
+ pub fn zend_throw_exception_ex (
2629
+ exception_ce : * mut zend_class_entry ,
2630
+ code : zend_long ,
2631
+ format : * const :: std:: os:: raw:: c_char ,
2632
+ ...
2633
+ ) -> * mut zend_object ;
2634
+ }
2635
+ extern "C" {
2636
+ pub fn zend_throw_exception_object ( exception : * mut zval ) ;
2637
+ }
2638
+ extern "C" {
2639
+ pub fn zend_do_implement_interface ( ce : * mut zend_class_entry , iface : * mut zend_class_entry ) ;
2640
+ }
2641
+ extern "C" {
2642
+ pub static mut zend_ce_traversable: * mut zend_class_entry ;
2643
+ }
2644
+ extern "C" {
2645
+ pub static mut zend_ce_aggregate: * mut zend_class_entry ;
2646
+ }
2647
+ extern "C" {
2648
+ pub static mut zend_ce_iterator: * mut zend_class_entry ;
2649
+ }
2650
+ extern "C" {
2651
+ pub static mut zend_ce_arrayaccess: * mut zend_class_entry ;
2652
+ }
2653
+ extern "C" {
2654
+ pub static mut zend_ce_serializable: * mut zend_class_entry ;
2655
+ }
2656
+ extern "C" {
2657
+ pub static mut zend_ce_countable: * mut zend_class_entry ;
2658
+ }
2659
+ extern "C" {
2660
+ pub static mut zend_ce_stringable: * mut zend_class_entry ;
2661
+ }
0 commit comments