php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
lsapi_main.c File Reference
#include "php.h"
#include "SAPI.h"
#include "php_main.h"
#include "php_ini.h"
#include "php_variables.h"
#include "zend_highlight.h"
#include "zend_portability.h"
#include "zend.h"
#include "ext/standard/basic_functions.h"
#include "ext/standard/info.h"
#include "ext/standard/head.h"
#include "lsapilib.h"
#include "lsapi_main_arginfo.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <signal.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/time.h>
#include <fcntl.h>

Go to the source code of this file.

Data Structures

struct  _user_config_cache_entry
 
struct  _http_error
 
struct  _lsapi_activate_user_ini_ctx
 

Macros

#define SAPI_LSAPI_MAX_HEADER_LENGTH   LSAPI_RESP_HTTP_HEADER_MAX
 
#define INI_DEFAULT(name, value)
 
#define DEBUG_MESSAGE(fmt, ...)
 

Typedefs

typedef struct _user_config_cache_entry user_config_cache_entry
 
typedef struct _http_error http_error
 
typedef int(* fn_activate_user_ini_chain_t) (_lsapi_activate_user_ini_ctx *ctx, void *next)
 

Functions

void litespeed_cleanup (int signal)
 
void start_children (int children)
 
void setArgv0 (int argc, char *argv[])
 
int main (int argc, char *argv[])
 
 PHP_MINFO_FUNCTION (litespeed)
 
 PHP_FUNCTION (litespeed_request_headers)
 
 PHP_FUNCTION (litespeed_response_headers)
 
 PHP_FUNCTION (apache_get_modules)
 
 PHP_FUNCTION (litespeed_finish_request)
 

Variables

zend_module_entry litespeed_module_entry
 

Macro Definition Documentation

◆ DEBUG_MESSAGE

#define DEBUG_MESSAGE ( fmt,
... )

Definition at line 536 of file lsapi_main.c.

◆ INI_DEFAULT

#define INI_DEFAULT ( name,
value )
Value:
ZVAL_STRING(tmp, value, 0);\
zend_hash_update(configuration_hash, name, sizeof(name), tmp, sizeof(zval), (void**)&entry);\
Z_STRVAL_P(entry) = zend_strndup(Z_STRVAL_P(entry), Z_STRLEN_P(entry))
#define ZVAL_STRING(z, s)
Definition zend_API.h:956
ZEND_API char *ZEND_FASTCALL zend_strndup(const char *s, size_t length)
struct _zval_struct zval
#define Z_STRVAL_P(zval_p)
Definition zend_types.h:975
#define Z_STRLEN_P(zval_p)
Definition zend_types.h:978
zend_string * name
value

Definition at line 110 of file lsapi_main.c.

◆ SAPI_LSAPI_MAX_HEADER_LENGTH

#define SAPI_LSAPI_MAX_HEADER_LENGTH   LSAPI_RESP_HTTP_HEADER_MAX

Definition at line 55 of file lsapi_main.c.

Typedef Documentation

◆ fn_activate_user_ini_chain_t

typedef int(* fn_activate_user_ini_chain_t) (_lsapi_activate_user_ini_ctx *ctx, void *next)

Definition at line 909 of file lsapi_main.c.

◆ http_error

typedef struct _http_error http_error

◆ user_config_cache_entry

Function Documentation

◆ litespeed_cleanup()

void litespeed_cleanup ( int signal)

Definition at line 1364 of file lsapi_main.c.

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 1444 of file lsapi_main.c.

◆ PHP_FUNCTION() [1/4]

PHP_FUNCTION ( apache_get_modules )

Definition at line 1714 of file lsapi_main.c.

◆ PHP_FUNCTION() [2/4]

PHP_FUNCTION ( litespeed_finish_request )

Definition at line 1737 of file lsapi_main.c.

◆ PHP_FUNCTION() [3/4]

PHP_FUNCTION ( litespeed_request_headers )

Definition at line 1657 of file lsapi_main.c.

◆ PHP_FUNCTION() [4/4]

PHP_FUNCTION ( litespeed_response_headers )

Definition at line 1672 of file lsapi_main.c.

◆ PHP_MINFO_FUNCTION()

PHP_MINFO_FUNCTION ( litespeed )

◆ setArgv0()

void setArgv0 ( int argc,
char * argv[] )

Definition at line 1423 of file lsapi_main.c.

◆ start_children()

void start_children ( int children)

Definition at line 1370 of file lsapi_main.c.

Variable Documentation

◆ litespeed_module_entry

zend_module_entry litespeed_module_entry
Initial value:
= {
"litespeed",
ext_functions,
PHP_MINIT(litespeed),
PHP_MSHUTDOWN(litespeed),
}
#define NULL
Definition gdcache.h:45
#define PHP_MSHUTDOWN
Definition php.h:393
#define PHP_MINIT
Definition php.h:392
#define PHP_VERSION
Definition php_version.h:7
#define STANDARD_MODULE_HEADER
#define STANDARD_MODULE_PROPERTIES

Definition at line 86 of file lsapi_main.c.