#include "php.h"
#include "zend.h"
#include "zend_API.h"
#include "zend_llist.h"
#include "zend_operators.h"
#include <sys/stat.h>
Go to the source code of this file.
|
SAPI_API void | sapi_startup (sapi_module_struct *sf) |
|
SAPI_API void | sapi_shutdown (void) |
|
SAPI_API void | sapi_activate (void) |
|
SAPI_API void | sapi_deactivate_module (void) |
|
SAPI_API void | sapi_deactivate_destroy (void) |
|
SAPI_API void | sapi_deactivate (void) |
|
SAPI_API void | sapi_initialize_empty_request (void) |
|
SAPI_API void | sapi_add_request_header (const char *var, unsigned int var_len, char *val, unsigned int val_len, void *arg) |
|
SAPI_API int | sapi_header_op (sapi_header_op_enum op, void *arg) |
|
SAPI_API int | sapi_add_header_ex (const char *header_line, size_t header_line_len, bool duplicate, bool replace) |
|
SAPI_API int | sapi_send_headers (void) |
|
SAPI_API void | sapi_free_header (sapi_header_struct *sapi_header) |
|
SAPI_API void | sapi_handle_post (void *arg) |
|
SAPI_API void | sapi_read_post_data (void) |
|
SAPI_API size_t | sapi_read_post_block (char *buffer, size_t buflen) |
|
SAPI_API int | sapi_register_post_entries (const sapi_post_entry *post_entry) |
|
SAPI_API int | sapi_register_post_entry (const sapi_post_entry *post_entry) |
|
SAPI_API void | sapi_unregister_post_entry (const sapi_post_entry *post_entry) |
|
SAPI_API int | sapi_register_default_post_reader (void(*default_post_reader)(void)) |
|
SAPI_API int | sapi_register_treat_data (void(*treat_data)(int arg, char *str, zval *destArray)) |
|
SAPI_API int | sapi_register_input_filter (unsigned int(*input_filter)(int arg, const char *var, char **val, size_t val_len, size_t *new_val_len), unsigned int(*input_filter_init)(void)) |
|
SAPI_API int | sapi_flush (void) |
|
SAPI_API zend_stat_t * | sapi_get_stat (void) |
|
SAPI_API char * | sapi_getenv (const char *name, size_t name_len) |
|
SAPI_API char * | sapi_get_default_content_type (void) |
|
SAPI_API void | sapi_get_default_content_type_header (sapi_header_struct *default_header) |
|
SAPI_API size_t | sapi_apply_default_charset (char **mimetype, size_t len) |
|
SAPI_API void | sapi_activate_headers_only (void) |
|
SAPI_API int | sapi_get_fd (int *fd) |
|
SAPI_API int | sapi_force_http_10 (void) |
|
SAPI_API int | sapi_get_target_uid (uid_t *) |
|
SAPI_API int | sapi_get_target_gid (gid_t *) |
|
SAPI_API double | sapi_get_request_time (void) |
|
SAPI_API void | sapi_terminate_process (void) |
|
SAPI_API | SAPI_POST_READER_FUNC (sapi_read_standard_form_data) |
|
SAPI_API | SAPI_POST_READER_FUNC (php_default_post_reader) |
|
SAPI_API | SAPI_TREAT_DATA_FUNC (php_default_treat_data) |
|
SAPI_API | SAPI_INPUT_FILTER_FUNC (php_default_input_filter) |
|
◆ REQUEST_PARSE_BODY_OPTION_GET
#define REQUEST_PARSE_BODY_OPTION_GET |
( |
| name, |
|
|
| fallback ) |
Value: (
SG(request_parse_body_context).options_cache[REQUEST_PARSE_BODY_OPTION_ ##
name].set \
?
SG(request_parse_body_context).options_cache[REQUEST_PARSE_BODY_OPTION_ ##
name].value \
: (fallback))
Definition at line 127 of file SAPI.h.
◆ sapi_add_header
#define sapi_add_header |
( |
| a, |
|
|
| b, |
|
|
| c ) |
Value:
SAPI_API int sapi_add_header_ex(const char *header_line, size_t header_line_len, bool duplicate, bool replace)
Definition at line 204 of file SAPI.h.
◆ SAPI_API
◆ SAPI_DEFAULT_CHARSET
◆ SAPI_DEFAULT_MIMETYPE
#define SAPI_DEFAULT_MIMETYPE "text/html" |
◆ SAPI_HEADER_ADD
#define SAPI_HEADER_ADD (1<<0) |
◆ SAPI_HEADER_DO_SEND
◆ SAPI_HEADER_SEND_FAILED
#define SAPI_HEADER_SEND_FAILED 3 |
◆ SAPI_HEADER_SENT_SUCCESSFULLY
#define SAPI_HEADER_SENT_SUCCESSFULLY 1 |
◆ SAPI_INPUT_FILTER_FUNC
#define SAPI_INPUT_FILTER_FUNC |
( |
| input_filter | ) |
|
Value:unsigned int input_filter(
int arg,
const char *var,
char **
val,
size_t val_len,
size_t *new_val_len)
Definition at line 315 of file SAPI.h.
◆ SAPI_OPTION_NO_CHDIR
#define SAPI_OPTION_NO_CHDIR 1 |
◆ SAPI_PHP_VERSION_HEADER
#define SAPI_PHP_VERSION_HEADER "X-Powered-By: PHP/" PHP_VERSION |
◆ SAPI_POST_BLOCK_SIZE
#define SAPI_POST_BLOCK_SIZE 0x4000 |
◆ SAPI_POST_HANDLER_FUNC
#define SAPI_POST_HANDLER_FUNC |
( |
| post_handler | ) |
|
Value:void post_handler(
char *content_type_dup,
void *
arg)
Definition at line 312 of file SAPI.h.
◆ SAPI_POST_READER_FUNC
#define SAPI_POST_READER_FUNC |
( |
| post_reader | ) |
|
Value:
Definition at line 311 of file SAPI.h.
◆ SAPI_TREAT_DATA_FUNC
#define SAPI_TREAT_DATA_FUNC |
( |
| treat_data | ) |
|
Value:void treat_data(
int arg,
char *str,
zval* destArray)
Definition at line 314 of file SAPI.h.
◆ SG
Value:
sapi_globals_struct sapi_globals
Definition at line 160 of file SAPI.h.
◆ STANDARD_SAPI_MODULE_PROPERTIES
#define STANDARD_SAPI_MODULE_PROPERTIES |
Value:
Definition at line 324 of file SAPI.h.
◆ sapi_globals_struct
◆ sapi_module_struct
◆ sapi_post_entry
◆ request_parse_body_option
Enumerator |
---|
REQUEST_PARSE_BODY_OPTION_max_file_uploads | |
REQUEST_PARSE_BODY_OPTION_max_input_vars | |
REQUEST_PARSE_BODY_OPTION_max_multipart_body_parts | |
REQUEST_PARSE_BODY_OPTION_post_max_size | |
REQUEST_PARSE_BODY_OPTION_upload_max_filesize | |
Definition at line 119 of file SAPI.h.
◆ sapi_header_op_enum
Enumerator |
---|
SAPI_HEADER_REPLACE | |
SAPI_HEADER_ADD | |
SAPI_HEADER_DELETE | |
SAPI_HEADER_DELETE_ALL | |
SAPI_HEADER_SET_STATUS | |
Definition at line 191 of file SAPI.h.
◆ sapi_activate()
◆ sapi_activate_headers_only()
◆ sapi_add_header_ex()
SAPI_API int sapi_add_header_ex |
( |
const char * | header_line, |
|
|
size_t | header_line_len, |
|
|
bool | duplicate, |
|
|
bool | replace ) |
◆ sapi_add_request_header()
SAPI_API void sapi_add_request_header |
( |
const char * | var, |
|
|
unsigned int | var_len, |
|
|
char * | val, |
|
|
unsigned int | val_len, |
|
|
void * | arg ) |
◆ sapi_apply_default_charset()
SAPI_API size_t sapi_apply_default_charset |
( |
char ** | mimetype, |
|
|
size_t | len ) |
◆ sapi_deactivate()
◆ sapi_deactivate_destroy()
◆ sapi_deactivate_module()
◆ sapi_flush()
◆ sapi_force_http_10()
◆ sapi_free_header()
◆ sapi_get_default_content_type()
◆ sapi_get_default_content_type_header()
◆ sapi_get_fd()
◆ sapi_get_request_time()
◆ sapi_get_stat()
◆ sapi_get_target_gid()
SAPI_API int sapi_get_target_gid |
( |
gid_t * | obj | ) |
|
◆ sapi_get_target_uid()
SAPI_API int sapi_get_target_uid |
( |
uid_t * | obj | ) |
|
◆ sapi_getenv()
SAPI_API char * sapi_getenv |
( |
const char * | name, |
|
|
size_t | name_len ) |
◆ sapi_handle_post()
◆ sapi_header_op()
◆ sapi_initialize_empty_request()
◆ SAPI_INPUT_FILTER_FUNC()
SAPI_API SAPI_INPUT_FILTER_FUNC |
( |
php_default_input_filter | | ) |
|
◆ SAPI_POST_READER_FUNC() [1/2]
SAPI_API SAPI_POST_READER_FUNC |
( |
php_default_post_reader | | ) |
|
◆ SAPI_POST_READER_FUNC() [2/2]
SAPI_API SAPI_POST_READER_FUNC |
( |
sapi_read_standard_form_data | | ) |
|
◆ sapi_read_post_block()
SAPI_API size_t sapi_read_post_block |
( |
char * | buffer, |
|
|
size_t | buflen ) |
◆ sapi_read_post_data()
◆ sapi_register_default_post_reader()
SAPI_API int sapi_register_default_post_reader |
( |
void(* | default_post_reader )(void) | ) |
|
◆ sapi_register_input_filter()
SAPI_API int sapi_register_input_filter |
( |
unsigned int(* | input_filter )(int arg, const char *var, char **val, size_t val_len, size_t *new_val_len), |
|
|
unsigned int(* | input_filter_init )(void) ) |
◆ sapi_register_post_entries()
◆ sapi_register_post_entry()
◆ sapi_register_treat_data()
SAPI_API int sapi_register_treat_data |
( |
void(* | treat_data )(int arg, char *str, zval *destArray) | ) |
|
◆ sapi_send_headers()
◆ sapi_shutdown()
◆ sapi_startup()
◆ sapi_terminate_process()
◆ SAPI_TREAT_DATA_FUNC()
SAPI_API SAPI_TREAT_DATA_FUNC |
( |
php_default_treat_data | | ) |
|
◆ sapi_unregister_post_entry()
◆ sapi_globals
◆ sapi_module