ext-php-rs 0.15.9

Bindings for the Zend API to build PHP extensions natively in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "zend.h"
#include "sapi/embed/php_embed.h"
#ifdef EXT_PHP_RS_PHP_82
#include "php_ini_builder.h"
#endif

void* ext_php_rs_embed_callback(int argc, char** argv, void* (*callback)(void *), void *ctx);

void ext_php_rs_sapi_startup();
void ext_php_rs_sapi_shutdown();
void ext_php_rs_sapi_per_thread_init();
void ext_php_rs_sapi_per_thread_shutdown();

void ext_php_rs_php_error(int type, const char *format, ...);

void ext_php_rs_worker_request_shutdown(void);
int ext_php_rs_worker_request_startup(void);
void ext_php_rs_worker_reset_superglobals(void);