php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_variables.h File Reference
#include "php.h"
#include "SAPI.h"

Go to the source code of this file.

Macros

#define PARSE_POST   0
 
#define PARSE_GET   1
 
#define PARSE_COOKIE   2
 
#define PARSE_STRING   3
 
#define PARSE_ENV   4
 
#define PARSE_SERVER   5
 
#define NUM_TRACK_VARS   6
 

Functions

void php_startup_auto_globals (void)
 
PHPAPI void php_register_variable (const char *var, const char *val, zval *track_vars_array)
 
PHPAPI void php_register_variable_safe (const char *var, const char *val, size_t val_len, zval *track_vars_array)
 
PHPAPI void php_register_variable_ex (const char *var, zval *val, zval *track_vars_array)
 
PHPAPI void php_register_known_variable (const char *var, size_t var_len, zval *value, zval *track_vars_array)
 
PHPAPI void php_build_argv (const char *s, zval *track_vars_array)
 
PHPAPI int php_hash_environment (void)
 

Variables

PHPAPI void(* php_import_environment_variables )(zval *array_ptr)
 
PHPAPI void(* php_load_environment_variables )(zval *array_ptr)
 

Macro Definition Documentation

◆ NUM_TRACK_VARS

#define NUM_TRACK_VARS   6

Definition at line 45 of file php_variables.h.

◆ PARSE_COOKIE

#define PARSE_COOKIE   2

Definition at line 26 of file php_variables.h.

◆ PARSE_ENV

#define PARSE_ENV   4

Definition at line 28 of file php_variables.h.

◆ PARSE_GET

#define PARSE_GET   1

Definition at line 25 of file php_variables.h.

◆ PARSE_POST

#define PARSE_POST   0

Definition at line 24 of file php_variables.h.

◆ PARSE_SERVER

#define PARSE_SERVER   5

Definition at line 29 of file php_variables.h.

◆ PARSE_STRING

#define PARSE_STRING   3

Definition at line 27 of file php_variables.h.

Function Documentation

◆ php_build_argv()

PHPAPI void php_build_argv ( const char * s,
zval * track_vars_array )

Definition at line 658 of file php_variables.c.

◆ php_hash_environment()

PHPAPI int php_hash_environment ( void )

Definition at line 785 of file php_variables.c.

◆ php_register_known_variable()

PHPAPI void php_register_known_variable ( const char * var,
size_t var_len,
zval * value,
zval * track_vars_array )

Definition at line 60 of file php_variables.c.

◆ php_register_variable()

PHPAPI void php_register_variable ( const char * var,
const char * val,
zval * track_vars_array )

Definition at line 36 of file php_variables.c.

◆ php_register_variable_ex()

PHPAPI void php_register_variable_ex ( const char * var,
zval * val,
zval * track_vars_array )

Definition at line 108 of file php_variables.c.

◆ php_register_variable_safe()

PHPAPI void php_register_variable_safe ( const char * var,
const char * val,
size_t val_len,
zval * track_vars_array )

Definition at line 42 of file php_variables.c.

◆ php_startup_auto_globals()

void php_startup_auto_globals ( void )

Definition at line 971 of file php_variables.c.

Variable Documentation

◆ php_import_environment_variables

PHPAPI void(* php_import_environment_variables) (zval *array_ptr) ( zval * array_ptr)
extern

Definition at line 33 of file php_variables.c.

◆ php_load_environment_variables

PHPAPI void(* php_load_environment_variables) (zval *array_ptr) ( zval * array_ptr)
extern

Definition at line 34 of file php_variables.c.