1999-07-16 21:13:16 +08:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| PHP version 4.0 |
|
|
|
|
+----------------------------------------------------------------------+
|
2000-01-01 09:32:05 +08:00
|
|
|
| Copyright (c) 1997, 1998, 1999, 2000 The PHP Group |
|
1999-07-16 21:13:16 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2000-05-18 23:34:45 +08:00
|
|
|
| This source file is subject to version 2.02 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 at through the world-wide-web at |
|
2000-05-18 23:34:45 +08:00
|
|
|
| http://www.php.net/license/2_02.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. |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| Authors: Zeev Suraski <zeev@zend.com> |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2000-07-03 07:46:51 +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
|
|
|
|
# define PLS_D php_core_globals *core_globals
|
|
|
|
# define PLS_DC , PLS_D
|
|
|
|
# define PLS_C core_globals
|
|
|
|
# define PLS_CC , PLS_C
|
|
|
|
# define PG(v) (core_globals->v)
|
|
|
|
# define PLS_FETCH() php_core_globals *core_globals = ts_resource(core_globals_id)
|
1999-06-04 18:45:54 +08:00
|
|
|
extern PHPAPI int core_globals_id;
|
1999-04-10 03:16:46 +08:00
|
|
|
#else
|
|
|
|
# define PLS_D
|
|
|
|
# define PLS_DC
|
|
|
|
# define PLS_C
|
|
|
|
# define PLS_CC
|
|
|
|
# define PG(v) (core_globals.v)
|
|
|
|
# define PLS_FETCH()
|
1999-09-05 19:38:01 +08:00
|
|
|
extern ZEND_API struct _php_core_globals core_globals;
|
1999-04-10 03:16:46 +08:00
|
|
|
#endif
|
|
|
|
|
2000-09-06 03:06:29 +08:00
|
|
|
|
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
|
2000-02-27 00:36:57 +08:00
|
|
|
|
2000-02-26 05:27:03 +08:00
|
|
|
struct _php_tick_function_entry;
|
1999-04-10 03:16:46 +08:00
|
|
|
|
|
|
|
struct _php_core_globals {
|
1999-09-05 06:06:12 +08:00
|
|
|
zend_bool magic_quotes_gpc;
|
|
|
|
zend_bool magic_quotes_runtime;
|
|
|
|
zend_bool magic_quotes_sybase;
|
1999-04-10 19:22:18 +08:00
|
|
|
|
1999-12-16 05:20:34 +08:00
|
|
|
zend_bool allow_call_time_pass_reference;
|
|
|
|
zend_bool zend_set_utility_values;
|
1999-09-05 06:06:12 +08:00
|
|
|
zend_bool output_buffering;
|
2000-01-14 04:39:33 +08:00
|
|
|
zend_bool implicit_flush;
|
1999-04-10 20:17:20 +08:00
|
|
|
|
1999-09-05 06:06:12 +08:00
|
|
|
zend_bool safe_mode;
|
|
|
|
zend_bool sql_safe_mode;
|
|
|
|
zend_bool enable_dl;
|
2000-05-30 02:45:06 +08:00
|
|
|
char *safe_mode_exec_dir;
|
1999-04-11 00:25:23 +08:00
|
|
|
|
1999-06-16 03:05:01 +08:00
|
|
|
long memory_limit;
|
1999-04-10 21:32:47 +08:00
|
|
|
|
1999-09-05 06:06:12 +08:00
|
|
|
zend_bool track_errors;
|
|
|
|
zend_bool display_errors;
|
2000-09-09 23:02:15 +08:00
|
|
|
zend_bool display_startup_errors;
|
1999-09-05 06:06:12 +08:00
|
|
|
zend_bool log_errors;
|
1999-06-16 03:05:01 +08:00
|
|
|
char *error_log;
|
1999-04-11 00:25:23 +08:00
|
|
|
|
1999-06-16 03:05:01 +08:00
|
|
|
char *doc_root;
|
|
|
|
char *user_dir;
|
|
|
|
char *include_path;
|
|
|
|
char *open_basedir;
|
|
|
|
char *extension_dir;
|
1999-04-11 00:25:23 +08:00
|
|
|
|
1999-06-16 03:05:01 +08:00
|
|
|
char *upload_tmp_dir;
|
|
|
|
long upload_max_filesize;
|
1999-11-27 01:07:41 +08:00
|
|
|
|
2000-04-14 22:00:32 +08:00
|
|
|
char *error_append_string;
|
|
|
|
char *error_prepend_string;
|
|
|
|
|
1999-06-16 03:05:01 +08:00
|
|
|
char *auto_prepend_file;
|
|
|
|
char *auto_append_file;
|
1999-04-11 00:25:23 +08:00
|
|
|
|
1999-06-16 03:05:01 +08:00
|
|
|
char *arg_separator;
|
|
|
|
char *gpc_order;
|
2000-01-29 01:24:53 +08:00
|
|
|
char *variables_order;
|
1999-04-11 00:25:23 +08:00
|
|
|
|
2000-09-05 03:07:50 +08:00
|
|
|
HashTable rfc1867_protected_variables;
|
|
|
|
|
1999-09-05 04:12:47 +08:00
|
|
|
short connection_status;
|
|
|
|
short ignore_user_abort;
|
|
|
|
|
1999-06-16 03:05:01 +08:00
|
|
|
unsigned char header_is_being_sent;
|
2000-02-26 05:27:03 +08:00
|
|
|
|
|
|
|
zend_llist tick_functions;
|
2000-02-27 00:36:57 +08:00
|
|
|
|
2000-09-06 03:06:29 +08:00
|
|
|
zval *http_globals[6];
|
2000-05-30 02:45:06 +08:00
|
|
|
|
|
|
|
zend_bool expose_php;
|
|
|
|
|
|
|
|
zend_bool register_globals;
|
|
|
|
zend_bool register_argc_argv;
|
|
|
|
|
|
|
|
zend_bool y2k_compliance;
|
|
|
|
|
2000-07-04 17:15:06 +08:00
|
|
|
zend_bool html_errors;
|
|
|
|
|
2000-09-09 23:02:15 +08:00
|
|
|
zend_bool modules_activated;
|
|
|
|
|
|
|
|
zend_bool file_uploads;
|
|
|
|
|
|
|
|
zend_bool during_request_startup;
|
1999-04-10 03:16:46 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2000-07-03 07:46:51 +08:00
|
|
|
#endif /* PHP_GLOBALS_H */
|
1999-06-16 01:06:22 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Local variables:
|
|
|
|
* tab-width: 4
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* End:
|
|
|
|
*/
|