2021-09-24 16:52:20 +00:00
|
|
|
#ifndef _FRANKENPPHP_H
|
|
|
|
#define _FRANKENPPHP_H
|
|
|
|
|
2021-10-31 23:18:30 +00:00
|
|
|
#include <stdint.h>
|
2023-03-05 14:47:20 +00:00
|
|
|
#include <stdbool.h>
|
2022-11-10 13:03:50 +00:00
|
|
|
#include <Zend/zend_types.h>
|
2021-10-31 23:18:30 +00:00
|
|
|
|
2023-03-05 14:47:20 +00:00
|
|
|
typedef struct frankenphp_version {
|
|
|
|
unsigned char major_version;
|
|
|
|
unsigned char minor_version;
|
|
|
|
unsigned char release_version;
|
2022-11-12 13:48:10 +00:00
|
|
|
const char *extra_version;
|
|
|
|
const char *version;
|
2023-03-05 14:47:20 +00:00
|
|
|
unsigned long version_id;
|
|
|
|
} frankenphp_version;
|
|
|
|
frankenphp_version frankenphp_get_version();
|
|
|
|
|
|
|
|
typedef struct frankenphp_config {
|
|
|
|
frankenphp_version version;
|
|
|
|
bool zts;
|
|
|
|
bool zend_signals;
|
|
|
|
bool zend_max_execution_timers;
|
|
|
|
} frankenphp_config;
|
|
|
|
frankenphp_config frankenphp_get_config();
|
2022-11-12 13:48:10 +00:00
|
|
|
|
2022-10-04 12:36:03 +00:00
|
|
|
int frankenphp_init(int num_threads);
|
2022-06-03 15:18:07 +00:00
|
|
|
|
2022-11-28 17:06:37 +00:00
|
|
|
int frankenphp_update_server_context(
|
|
|
|
bool create,
|
2022-10-04 12:36:03 +00:00
|
|
|
uintptr_t current_request,
|
|
|
|
uintptr_t main_request,
|
2021-10-31 23:18:30 +00:00
|
|
|
|
|
|
|
const char *request_method,
|
|
|
|
char *query_string,
|
|
|
|
int64_t content_length,
|
|
|
|
char *path_translated,
|
|
|
|
char *request_uri,
|
|
|
|
const char *content_type,
|
|
|
|
char *auth_user,
|
|
|
|
char *auth_password,
|
|
|
|
int proto_num
|
|
|
|
);
|
2022-05-18 09:52:24 +00:00
|
|
|
int frankenphp_worker_reset_server_context();
|
|
|
|
uintptr_t frankenphp_clean_server_context();
|
|
|
|
int frankenphp_request_startup();
|
|
|
|
int frankenphp_execute_script(const char *file_name);
|
|
|
|
uintptr_t frankenphp_request_shutdown();
|
2022-11-10 13:03:50 +00:00
|
|
|
void frankenphp_register_bulk_variables(char **variables, size_t size, zval *track_vars_array);
|
2021-09-24 16:52:20 +00:00
|
|
|
|
|
|
|
#endif
|