php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
cgi_main.c File Reference
#include "php.h"
#include "php_globals.h"
#include "php_variables.h"
#include "php_ini_builder.h"
#include "zend_modules.h"
#include "SAPI.h"
#include <stdio.h>
#include <signal.h>
#include <locale.h>
#include "zend.h"
#include "zend_extensions.h"
#include "php_ini.h"
#include "php_main.h"
#include "fopen_wrappers.h"
#include "http_status_codes.h"
#include "ext/standard/php_standard.h"
#include "ext/standard/dl_arginfo.h"
#include "ext/standard/url.h"
#include "zend_compile.h"
#include "zend_execute.h"
#include "zend_highlight.h"
#include "php_getopt.h"
#include "fastcgi.h"
#include "cgi_main_arginfo.h"

Go to the source code of this file.

Data Structures

struct  _php_cgi_globals_struct
 
struct  _user_config_cache_entry
 

Macros

#define PHP_MODE_STANDARD   1
 
#define PHP_MODE_HIGHLIGHT   2
 
#define PHP_MODE_LINT   4
 
#define PHP_MODE_STRIP   5
 
#define CGIG(v)
 
#define TRANSLATE_SLASHES(path)
 
#define STDOUT_FILENO   1
 
#define SAPI_CGI_MAX_HEADER_LENGTH   1024
 
#define STDIN_FILENO   0
 
#define CGI_GETENV(name)
 
#define CGI_PUTENV(name, value)
 

Typedefs

typedef struct _php_cgi_globals_struct php_cgi_globals_struct
 
typedef struct _user_config_cache_entry user_config_cache_entry
 

Functions

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

Macro Definition Documentation

◆ CGI_GETENV

#define CGI_GETENV ( name)
Value:
((has_env) ? \
FCGI_GETENV(request, name) : \
getenv(?string $name=null, bool $local_only=false)
zend_string * name

Definition at line 1085 of file cgi_main.c.

◆ CGI_PUTENV

#define CGI_PUTENV ( name,
value )
Value:
((has_env) ? \
FCGI_PUTENV(request, name, value) : \
_sapi_cgi_putenv(name, sizeof(name)-1, value))
sizeof(Countable|array $value, int $mode=COUNT_NORMAL)
value

Definition at line 1090 of file cgi_main.c.

◆ CGIG

#define CGIG ( v)
Value:
(php_cgi_globals.v)

Definition at line 212 of file cgi_main.c.

◆ PHP_MODE_HIGHLIGHT

#define PHP_MODE_HIGHLIGHT   2

Definition at line 134 of file cgi_main.c.

◆ PHP_MODE_LINT

#define PHP_MODE_LINT   4

Definition at line 135 of file cgi_main.c.

◆ PHP_MODE_STANDARD

#define PHP_MODE_STANDARD   1

Definition at line 133 of file cgi_main.c.

◆ PHP_MODE_STRIP

#define PHP_MODE_STRIP   5

Definition at line 136 of file cgi_main.c.

◆ SAPI_CGI_MAX_HEADER_LENGTH

#define SAPI_CGI_MAX_HEADER_LENGTH   1024

Definition at line 369 of file cgi_main.c.

◆ STDIN_FILENO

#define STDIN_FILENO   0

Definition at line 475 of file cgi_main.c.

◆ STDOUT_FILENO

#define STDOUT_FILENO   1

Definition at line 291 of file cgi_main.c.

◆ TRANSLATE_SLASHES

#define TRANSLATE_SLASHES ( path)

Definition at line 225 of file cgi_main.c.

Typedef Documentation

◆ php_cgi_globals_struct

◆ user_config_cache_entry

Function Documentation

◆ main()

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

Definition at line 1716 of file cgi_main.c.