#![allow(clippy::all)]
#![allow(warnings)]
#[cfg(php82)]
use crate::ffi::php_ini_builder;
use crate::ffi::{zend_result, zval};
use std::ffi::{c_char, c_int, c_void};
#[link(name = "wrapper")]
unsafe extern "C" {
pub fn ext_php_rs_embed_callback(
argc: c_int,
argv: *mut *mut c_char,
func: unsafe extern "C" fn(*const c_void) -> *const c_void,
ctx: *const c_void,
) -> *mut c_void;
pub fn ext_php_rs_eval_string(
str: *const c_char,
retval: *mut zval,
name: *const c_char,
) -> zend_result;
pub fn ext_php_rs_sapi_startup();
pub fn ext_php_rs_sapi_shutdown();
pub fn ext_php_rs_sapi_per_thread_init();
pub fn ext_php_rs_sapi_per_thread_shutdown();
#[deprecated(note = "use `ext_php_rs::ffi::zend_error` instead")]
#[link_name = "zend_error"]
pub fn ext_php_rs_php_error(
type_: ::std::os::raw::c_int,
error_msg: *const ::std::os::raw::c_char,
...
);
pub fn ext_php_rs_worker_request_shutdown();
pub fn ext_php_rs_worker_request_startup() -> c_int;
pub fn ext_php_rs_worker_reset_superglobals();
#[cfg(php82)]
pub fn ext_php_rs_php_ini_builder_deinit(builder: *mut php_ini_builder);
}