php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_globals.h
Go to the documentation of this file.
1/*
2 +----------------------------------------------------------------------+
3 | Copyright (c) The PHP Group |
4 +----------------------------------------------------------------------+
5 | This source file is subject to version 3.01 of the PHP license, |
6 | that is bundled with this package in the file LICENSE, and is |
7 | available through the world-wide-web at the following url: |
8 | https://www.php.net/license/3_01.txt |
9 | If you did not receive a copy of the PHP license and are unable to |
10 | obtain it through the world-wide-web, please send a note to |
11 | license@php.net so we can mail you a copy immediately. |
12 +----------------------------------------------------------------------+
13 | Author: Zeev Suraski <zeev@php.net> |
14 +----------------------------------------------------------------------+
15*/
16
17#ifndef PHP_GLOBALS_H
18#define PHP_GLOBALS_H
19
20#include "zend_globals.h"
21
22#include <stdint.h>
23
25
26#ifdef ZTS
27# define PG(v) ZEND_TSRMG_FAST(core_globals_offset, php_core_globals *, v)
28extern PHPAPI int core_globals_id;
29extern PHPAPI size_t core_globals_offset;
30#else
31# define PG(v) (core_globals.v)
33#endif
34
35/* Error display modes */
36#define PHP_DISPLAY_ERRORS_STDOUT 1
37#define PHP_DISPLAY_ERRORS_STDERR 2
38
39/* Track vars */
40#define TRACK_VARS_POST 0
41#define TRACK_VARS_GET 1
42#define TRACK_VARS_COOKIE 2
43#define TRACK_VARS_SERVER 3
44#define TRACK_VARS_ENV 4
45#define TRACK_VARS_FILES 5
46#define TRACK_VARS_REQUEST 6
47
48struct _php_tick_function_entry;
49
50typedef struct _arg_separators {
51 char *output;
52 char *input;
54
57
59
61
68
70
73
76
77 char *error_log;
78
79 char *doc_root;
80 char *user_dir;
87
90
93
96
100
102
104
106
109
110 unsigned char header_is_being_sent;
111
113
115
117
120
123
126
128
130
137
142
144
148
151
153
154 char *mail_log;
157
159
161#ifdef PHP_WIN32
162 bool com_initialized;
163#endif
165
166#ifdef PHP_WIN32
167 bool windows_show_crt_warning;
168#endif
169
175};
176
177
178#endif /* PHP_GLOBALS_H */
php_core_globals core_globals
Definition main.c:92
#define PHPAPI
Definition php.h:71
struct _php_core_globals php_core_globals
Definition php_globals.h:24
struct _arg_separators arg_separators
arg_separators arg_separator
char * unserialize_callback_func
Definition php_globals.h:71
zend_long max_input_nesting_level
char * auto_prepend_file
Definition php_globals.h:94
zend_string * last_error_file
zend_string * last_error_message
zend_long syslog_facility
char * internal_encoding
Definition php_globals.h:98
uint8_t display_errors
Definition php_globals.h:62
zend_long upload_max_filesize
Definition php_globals.h:89
zend_llist tick_functions
bool ignore_repeated_source
Definition php_globals.h:66
zend_long error_log_mode
zend_long user_ini_cache_ttl
bool ignore_repeated_errors
Definition php_globals.h:65
bool activated_auto_globals[8]
char * auto_append_file
Definition php_globals.h:95
bool enable_post_data_reading
zend_long xmlrpc_error_number
zend_long output_buffering
Definition php_globals.h:56
zend_long max_input_vars
bool display_startup_errors
Definition php_globals.h:63
HashTable rfc1867_protected_variables
unsigned char header_is_being_sent
zend_long syslog_filter
char * error_prepend_string
Definition php_globals.h:92
zend_long memory_limit
Definition php_globals.h:74
char * error_append_string
Definition php_globals.h:91
zend_long serialize_precision
Definition php_globals.h:72
zend_long max_input_time
Definition php_globals.h:75
struct _zval_struct zval
#define ZEND_API
struct _zend_llist zend_llist
int32_t zend_long
Definition zend_long.h:42
struct _zend_string zend_string
struct _zend_array HashTable
Definition zend_types.h:386