php-src/main/php_globals.h

181 lines
4.1 KiB
C
Raw Normal View History

1999-07-16 21:13:16 +08:00
/*
+----------------------------------------------------------------------+
2014-09-20 00:33:14 +08:00
| PHP Version 7 |
1999-07-16 21:13:16 +08:00
+----------------------------------------------------------------------+
2017-01-05 01:23:42 +08:00
| Copyright (c) 1997-2017 The PHP Group |
1999-07-16 21:13:16 +08:00
+----------------------------------------------------------------------+
2006-01-01 20:51:34 +08:00
| This source file is subject to version 3.01 of the PHP license, |
1999-07-16 21:13:16 +08:00
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
2006-01-01 20:51:34 +08:00
| http://www.php.net/license/3_01.txt |
1999-07-16 21:13:16 +08:00
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
2002-02-28 16:29:35 +08:00
| Author: Zeev Suraski <zeev@zend.com> |
1999-07-16 21:13:16 +08:00
+----------------------------------------------------------------------+
*/
/* $Id$ */
1999-07-16 21:13:16 +08:00
#ifndef PHP_GLOBALS_H
#define PHP_GLOBALS_H
1999-04-10 03:16:46 +08:00
1999-04-21 12:02:11 +08:00
#include "zend_globals.h"
1999-04-10 03:16:46 +08:00
typedef struct _php_core_globals php_core_globals;
#ifdef ZTS
2014-10-07 15:09:46 +08:00
# define PG(v) ZEND_TSRMG(core_globals_id, php_core_globals *, v)
2014-09-26 00:48:27 +08:00
extern PHPAPI int core_globals_id;
1999-04-10 03:16:46 +08:00
#else
# define PG(v) (core_globals.v)
extern ZEND_API struct _php_core_globals core_globals;
1999-04-10 03:16:46 +08:00
#endif
/* Error display modes */
#define PHP_DISPLAY_ERRORS_STDOUT 1
#define PHP_DISPLAY_ERRORS_STDERR 2
/* Track vars */
2000-09-06 12:56:22 +08:00
#define TRACK_VARS_POST 0
#define TRACK_VARS_GET 1
#define TRACK_VARS_COOKIE 2
#define TRACK_VARS_SERVER 3
#define TRACK_VARS_ENV 4
#define TRACK_VARS_FILES 5
#define TRACK_VARS_REQUEST 6
struct _php_tick_function_entry;
1999-04-10 03:16:46 +08:00
typedef struct _arg_separators {
char *output;
char *input;
} arg_separators;
1999-04-10 03:16:46 +08:00
struct _php_core_globals {
zend_bool implicit_flush;
2014-08-26 01:24:55 +08:00
zend_long output_buffering;
zend_bool sql_safe_mode;
zend_bool enable_dl;
char *output_handler;
char *unserialize_callback_func;
2014-08-26 01:24:55 +08:00
zend_long serialize_precision;
2014-08-26 01:24:55 +08:00
zend_long memory_limit;
zend_long max_input_time;
1999-04-10 21:32:47 +08:00
zend_bool track_errors;
zend_bool display_errors;
zend_bool display_startup_errors;
zend_bool log_errors;
2014-08-26 01:24:55 +08:00
zend_long log_errors_max_len;
zend_bool ignore_repeated_errors;
zend_bool ignore_repeated_source;
zend_bool report_memleaks;
char *error_log;
1999-04-11 00:25:23 +08:00
char *doc_root;
char *user_dir;
char *include_path;
char *open_basedir;
char *extension_dir;
char *php_binary;
char *sys_temp_dir;
1999-04-11 00:25:23 +08:00
char *upload_tmp_dir;
2014-08-26 01:24:55 +08:00
zend_long upload_max_filesize;
2015-01-03 17:22:58 +08:00
char *error_append_string;
char *error_prepend_string;
char *auto_prepend_file;
char *auto_append_file;
1999-04-11 00:25:23 +08:00
char *input_encoding;
char *internal_encoding;
char *output_encoding;
arg_separators arg_separator;
char *variables_order;
1999-04-11 00:25:23 +08:00
HashTable rfc1867_protected_variables;
short connection_status;
short ignore_user_abort;
unsigned char header_is_being_sent;
zend_llist tick_functions;
zval http_globals[6];
zend_bool expose_php;
zend_bool register_argc_argv;
zend_bool auto_globals_jit;
char *docref_root;
char *docref_ext;
zend_bool html_errors;
zend_bool xmlrpc_errors;
2014-08-26 01:24:55 +08:00
zend_long xmlrpc_error_number;
zend_bool activated_auto_globals[8];
zend_bool modules_activated;
zend_bool file_uploads;
zend_bool during_request_startup;
zend_bool allow_url_fopen;
zend_bool enable_post_data_reading;
zend_bool report_zend_debug;
2006-07-19 20:25:46 +08:00
int last_error_type;
char *last_error_message;
char *last_error_file;
int last_error_lineno;
2015-04-29 20:35:35 +08:00
char *php_sys_temp_dir;
char *disable_functions;
char *disable_classes;
zend_bool allow_url_include;
#ifdef PHP_WIN32
zend_bool com_initialized;
#endif
2014-08-26 01:24:55 +08:00
zend_long max_input_nesting_level;
zend_long max_input_vars;
zend_bool in_user_include;
char *user_ini_filename;
2014-08-26 01:24:55 +08:00
zend_long user_ini_cache_ttl;
char *request_order;
zend_bool mail_x_header;
char *mail_log;
zend_bool in_error_log;
2011-09-13 22:35:12 +08:00
#ifdef PHP_WIN32
zend_bool windows_show_crt_warning;
#endif
1999-04-10 03:16:46 +08:00
};
#endif /* PHP_GLOBALS_H */
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
*/