php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
SAPI.c File Reference
#include <ctype.h>
#include <sys/stat.h>
#include <locale.h>
#include "php.h"
#include "SAPI.h"
#include "php_variables.h"
#include "php_ini.h"
#include "rfc1867.h"
#include "php_content_types.h"

Go to the source code of this file.

Functions

SAPI_API void sapi_startup (sapi_module_struct *sf)
 
SAPI_API void sapi_shutdown (void)
 
SAPI_API void sapi_free_header (sapi_header_struct *sapi_header)
 
 PHP_FUNCTION (header_register_callback)
 
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 SAPI_POST_READER_FUNC (sapi_read_standard_form_data)
 
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 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 int sapi_add_header_ex (const char *header_line, size_t header_line_len, bool duplicate, bool replace)
 
SAPI_API int sapi_header_op (sapi_header_op_enum op, void *arg)
 
SAPI_API int sapi_send_headers (void)
 
SAPI_API int sapi_register_post_entries (const sapi_post_entry *post_entries)
 
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_tsapi_get_stat (void)
 
SAPI_API char * sapi_getenv (const char *name, size_t name_len)
 
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 *obj)
 
SAPI_API int sapi_get_target_gid (gid_t *obj)
 
SAPI_API double sapi_get_request_time (void)
 
SAPI_API void sapi_terminate_process (void)
 
SAPI_API void sapi_add_request_header (const char *var, unsigned int var_len, char *val, unsigned int val_len, void *arg)
 

Variables

sapi_globals_struct sapi_globals
 
SAPI_API sapi_module_struct sapi_module
 

Function Documentation

◆ PHP_FUNCTION()

PHP_FUNCTION ( header_register_callback )

Definition at line 111 of file SAPI.c.

◆ sapi_activate()

SAPI_API void sapi_activate ( void )

Definition at line 430 of file SAPI.c.

◆ sapi_activate_headers_only()

SAPI_API void sapi_activate_headers_only ( void )

Definition at line 386 of file SAPI.c.

◆ sapi_add_header_ex()

SAPI_API int sapi_add_header_ex ( const char * header_line,
size_t header_line_len,
bool duplicate,
bool replace )

Definition at line 628 of file SAPI.c.

◆ 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 )

Definition at line 1110 of file SAPI.c.

◆ sapi_apply_default_charset()

SAPI_API size_t sapi_apply_default_charset ( char ** mimetype,
size_t len )

Definition at line 365 of file SAPI.c.

◆ sapi_deactivate()

SAPI_API void sapi_deactivate ( void )

Definition at line 549 of file SAPI.c.

◆ sapi_deactivate_destroy()

SAPI_API void sapi_deactivate_destroy ( void )

Definition at line 533 of file SAPI.c.

◆ sapi_deactivate_module()

SAPI_API void sapi_deactivate_module ( void )

Definition at line 494 of file SAPI.c.

◆ sapi_flush()

SAPI_API int sapi_flush ( void )

Definition at line 1001 of file SAPI.c.

◆ sapi_force_http_10()

SAPI_API int sapi_force_http_10 ( void )

Definition at line 1060 of file SAPI.c.

◆ sapi_free_header()

SAPI_API void sapi_free_header ( sapi_header_struct * sapi_header)

Definition at line 105 of file SAPI.c.

◆ sapi_get_default_content_type()

SAPI_API char * sapi_get_default_content_type ( void )

Definition at line 337 of file SAPI.c.

◆ sapi_get_default_content_type_header()

SAPI_API void sapi_get_default_content_type_header ( sapi_header_struct * default_header)

Definition at line 345 of file SAPI.c.

◆ sapi_get_fd()

SAPI_API int sapi_get_fd ( int * fd)

Definition at line 1051 of file SAPI.c.

◆ sapi_get_request_time()

SAPI_API double sapi_get_request_time ( void )

Definition at line 1088 of file SAPI.c.

◆ sapi_get_stat()

SAPI_API zend_stat_t * sapi_get_stat ( void )

Definition at line 1011 of file SAPI.c.

◆ sapi_get_target_gid()

SAPI_API int sapi_get_target_gid ( gid_t * obj)

Definition at line 1079 of file SAPI.c.

◆ sapi_get_target_uid()

SAPI_API int sapi_get_target_uid ( uid_t * obj)

Definition at line 1070 of file SAPI.c.

◆ sapi_getenv()

SAPI_API char * sapi_getenv ( const char * name,
size_t name_len )

Definition at line 1023 of file SAPI.c.

◆ sapi_handle_post()

SAPI_API void sapi_handle_post ( void * arg)

Definition at line 161 of file SAPI.c.

◆ sapi_header_op()

SAPI_API int sapi_header_op ( sapi_header_op_enum op,
void * arg )

Definition at line 666 of file SAPI.c.

◆ sapi_initialize_empty_request()

SAPI_API void sapi_initialize_empty_request ( void )

Definition at line 556 of file SAPI.c.

◆ SAPI_POST_READER_FUNC()

SAPI_API SAPI_POST_READER_FUNC ( sapi_read_standard_form_data )

Definition at line 254 of file SAPI.c.

◆ sapi_read_post_block()

SAPI_API size_t sapi_read_post_block ( char * buffer,
size_t buflen )

Definition at line 232 of file SAPI.c.

◆ sapi_read_post_data()

SAPI_API void sapi_read_post_data ( void )

Definition at line 170 of file SAPI.c.

◆ sapi_register_default_post_reader()

SAPI_API int sapi_register_default_post_reader ( void(* default_post_reader )(void))

Definition at line 972 of file SAPI.c.

◆ 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) )

Definition at line 991 of file SAPI.c.

◆ sapi_register_post_entries()

SAPI_API int sapi_register_post_entries ( const sapi_post_entry * post_entries)

Definition at line 933 of file SAPI.c.

◆ sapi_register_post_entry()

SAPI_API int sapi_register_post_entry ( const sapi_post_entry * post_entry)

Definition at line 947 of file SAPI.c.

◆ sapi_register_treat_data()

SAPI_API int sapi_register_treat_data ( void(* treat_data )(int arg, char *str, zval *destArray))

Definition at line 982 of file SAPI.c.

◆ sapi_send_headers()

SAPI_API int sapi_send_headers ( void )

Definition at line 843 of file SAPI.c.

◆ sapi_shutdown()

SAPI_API void sapi_shutdown ( void )

Definition at line 89 of file SAPI.c.

◆ sapi_startup()

SAPI_API void sapi_startup ( sapi_module_struct * sf)

Definition at line 68 of file SAPI.c.

◆ sapi_terminate_process()

SAPI_API void sapi_terminate_process ( void )

Definition at line 1104 of file SAPI.c.

◆ sapi_unregister_post_entry()

SAPI_API void sapi_unregister_post_entry ( const sapi_post_entry * post_entry)

Definition at line 962 of file SAPI.c.

Variable Documentation

◆ sapi_globals

sapi_globals_struct sapi_globals

Definition at line 44 of file SAPI.c.

◆ sapi_module

Definition at line 65 of file SAPI.c.