1999-07-16 13:13:16 +00:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
2004-01-08 17:33:29 +00:00
|
|
|
| PHP Version 5 |
|
1999-07-16 13:13:16 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2004-01-08 17:33:29 +00:00
|
|
|
| Copyright (c) 1997-2004 The PHP Group |
|
1999-07-16 13:13:16 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2003-06-10 20:04:29 +00:00
|
|
|
| This source file is subject to version 3.0 of the PHP license, |
|
1999-07-16 13:13:16 +00:00
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
2003-06-10 20:04:29 +00:00
|
|
|
| available through the world-wide-web at the following url: |
|
|
|
|
| http://www.php.net/license/3_0.txt. |
|
1999-07-16 13:13:16 +00: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 08:29:35 +00:00
|
|
|
| Author: Zeev Suraski <zeev@zend.com> |
|
1999-07-16 13:13:16 +00:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
*/
|
|
|
|
|
2003-02-19 08:40:19 +00:00
|
|
|
/* $Id$ */
|
1999-07-16 13:13:16 +00:00
|
|
|
|
2000-07-02 23:46:51 +00:00
|
|
|
#ifndef PHP_GLOBALS_H
|
|
|
|
#define PHP_GLOBALS_H
|
1999-04-09 19:16:46 +00:00
|
|
|
|
1999-04-21 04:02:11 +00:00
|
|
|
#include "zend_globals.h"
|
|
|
|
|
1999-04-09 19:16:46 +00:00
|
|
|
typedef struct _php_core_globals php_core_globals;
|
|
|
|
|
|
|
|
#ifdef ZTS
|
2001-07-28 11:36:37 +00:00
|
|
|
# define PG(v) TSRMG(core_globals_id, php_core_globals *, v)
|
1999-06-04 10:45:54 +00:00
|
|
|
extern PHPAPI int core_globals_id;
|
1999-04-09 19:16:46 +00:00
|
|
|
#else
|
|
|
|
# define PG(v) (core_globals.v)
|
1999-09-05 11:38:01 +00:00
|
|
|
extern ZEND_API struct _php_core_globals core_globals;
|
1999-04-09 19:16:46 +00:00
|
|
|
#endif
|
|
|
|
|
2000-09-05 19:06:29 +00:00
|
|
|
|
2000-09-06 04:56:22 +00: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
|
2003-03-02 10:19:15 +00:00
|
|
|
#define TRACK_VARS_REQUEST 6
|
2000-02-26 16:36:57 +00:00
|
|
|
|
2000-02-25 21:27:03 +00:00
|
|
|
struct _php_tick_function_entry;
|
1999-04-09 19:16:46 +00:00
|
|
|
|
2001-04-04 20:46:26 +00:00
|
|
|
typedef struct _arg_separators {
|
|
|
|
char *output;
|
|
|
|
char *input;
|
|
|
|
} arg_separators;
|
|
|
|
|
1999-04-09 19:16:46 +00:00
|
|
|
struct _php_core_globals {
|
1999-09-04 22:06:12 +00:00
|
|
|
zend_bool magic_quotes_gpc;
|
|
|
|
zend_bool magic_quotes_runtime;
|
|
|
|
zend_bool magic_quotes_sybase;
|
1999-04-10 11:22:18 +00:00
|
|
|
|
2001-08-11 22:55:00 +00:00
|
|
|
zend_bool safe_mode;
|
|
|
|
|
1999-12-15 21:20:34 +00:00
|
|
|
zend_bool allow_call_time_pass_reference;
|
2000-01-13 20:39:33 +00:00
|
|
|
zend_bool implicit_flush;
|
1999-04-10 12:17:20 +00:00
|
|
|
|
2003-03-10 14:50:16 +00:00
|
|
|
long output_buffering;
|
2001-08-11 22:55:00 +00:00
|
|
|
|
2001-07-13 18:21:21 +00:00
|
|
|
char *safe_mode_include_dir;
|
2001-07-09 17:36:04 +00:00
|
|
|
zend_bool safe_mode_gid;
|
1999-09-04 22:06:12 +00:00
|
|
|
zend_bool sql_safe_mode;
|
|
|
|
zend_bool enable_dl;
|
2000-11-13 18:54:37 +00:00
|
|
|
|
|
|
|
char *output_handler;
|
|
|
|
|
2001-11-26 21:04:21 +00:00
|
|
|
char *unserialize_callback_func;
|
2003-05-08 01:23:21 +00:00
|
|
|
long serialize_precision;
|
2001-11-26 21:04:21 +00:00
|
|
|
|
2000-05-29 18:45:06 +00:00
|
|
|
char *safe_mode_exec_dir;
|
1999-04-10 16:25:23 +00:00
|
|
|
|
1999-06-15 19:05:01 +00:00
|
|
|
long memory_limit;
|
2002-10-21 13:09:29 +00:00
|
|
|
long max_input_time;
|
1999-04-10 13:32:47 +00:00
|
|
|
|
1999-09-04 22:06:12 +00:00
|
|
|
zend_bool track_errors;
|
|
|
|
zend_bool display_errors;
|
2000-09-09 15:02:15 +00:00
|
|
|
zend_bool display_startup_errors;
|
1999-09-04 22:06:12 +00:00
|
|
|
zend_bool log_errors;
|
2002-11-30 18:36:17 +00:00
|
|
|
long log_errors_max_len;
|
2002-04-06 18:49:59 +00:00
|
|
|
zend_bool ignore_repeated_errors;
|
|
|
|
zend_bool ignore_repeated_source;
|
2002-06-26 19:43:46 +00:00
|
|
|
zend_bool report_memleaks;
|
1999-06-15 19:05:01 +00:00
|
|
|
char *error_log;
|
1999-04-10 16:25:23 +00:00
|
|
|
|
1999-06-15 19:05:01 +00:00
|
|
|
char *doc_root;
|
|
|
|
char *user_dir;
|
|
|
|
char *include_path;
|
|
|
|
char *open_basedir;
|
|
|
|
char *extension_dir;
|
1999-04-10 16:25:23 +00:00
|
|
|
|
1999-06-15 19:05:01 +00:00
|
|
|
char *upload_tmp_dir;
|
|
|
|
long upload_max_filesize;
|
1999-11-26 17:07:41 +00:00
|
|
|
|
2000-04-14 14:00:32 +00:00
|
|
|
char *error_append_string;
|
|
|
|
char *error_prepend_string;
|
|
|
|
|
1999-06-15 19:05:01 +00:00
|
|
|
char *auto_prepend_file;
|
|
|
|
char *auto_append_file;
|
1999-04-10 16:25:23 +00:00
|
|
|
|
2001-04-04 20:46:26 +00:00
|
|
|
arg_separators arg_separator;
|
|
|
|
|
2000-01-28 17:24:53 +00:00
|
|
|
char *variables_order;
|
1999-04-10 16:25:23 +00:00
|
|
|
|
2000-09-04 19:07:50 +00:00
|
|
|
HashTable rfc1867_protected_variables;
|
|
|
|
|
1999-09-04 20:12:47 +00:00
|
|
|
short connection_status;
|
|
|
|
short ignore_user_abort;
|
|
|
|
|
1999-06-15 19:05:01 +00:00
|
|
|
unsigned char header_is_being_sent;
|
2000-02-25 21:27:03 +00:00
|
|
|
|
|
|
|
zend_llist tick_functions;
|
2000-02-26 16:36:57 +00:00
|
|
|
|
2000-09-05 19:06:29 +00:00
|
|
|
zval *http_globals[6];
|
2000-05-29 18:45:06 +00:00
|
|
|
|
|
|
|
zend_bool expose_php;
|
|
|
|
|
|
|
|
zend_bool register_globals;
|
2003-03-02 10:19:15 +00:00
|
|
|
zend_bool register_long_arrays;
|
2000-05-29 18:45:06 +00:00
|
|
|
zend_bool register_argc_argv;
|
2004-03-16 19:49:19 +00:00
|
|
|
zend_bool auto_globals_jit;
|
2000-05-29 18:45:06 +00:00
|
|
|
|
|
|
|
zend_bool y2k_compliance;
|
|
|
|
|
2002-08-08 19:12:27 +00:00
|
|
|
char *docref_root;
|
|
|
|
char *docref_ext;
|
|
|
|
|
2000-07-04 09:15:06 +00:00
|
|
|
zend_bool html_errors;
|
2001-07-10 15:59:33 +00:00
|
|
|
zend_bool xmlrpc_errors;
|
|
|
|
|
2001-07-13 16:08:39 +00:00
|
|
|
long xmlrpc_error_number;
|
2001-07-10 15:59:33 +00:00
|
|
|
|
2003-03-02 10:19:15 +00:00
|
|
|
zend_bool activated_auto_globals[8];
|
2000-07-04 09:15:06 +00:00
|
|
|
|
2000-09-09 15:02:15 +00:00
|
|
|
zend_bool modules_activated;
|
|
|
|
zend_bool file_uploads;
|
|
|
|
zend_bool during_request_startup;
|
2000-10-13 00:09:31 +00:00
|
|
|
zend_bool allow_url_fopen;
|
2001-07-17 16:46:07 +00:00
|
|
|
zend_bool always_populate_raw_post_data;
|
2002-11-21 14:56:06 +00:00
|
|
|
zend_bool report_zend_debug;
|
2003-05-07 01:02:23 +00:00
|
|
|
|
|
|
|
char *last_error_message;
|
|
|
|
char *last_error_file;
|
|
|
|
int last_error_lineno;
|
|
|
|
error_handling_t error_handling;
|
|
|
|
zend_class_entry *exception_class;
|
2003-12-24 16:38:22 +00:00
|
|
|
|
|
|
|
char *disable_functions;
|
|
|
|
char *disable_classes;
|
1999-04-09 19:16:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2000-07-02 23:46:51 +00:00
|
|
|
#endif /* PHP_GLOBALS_H */
|
1999-06-15 17:06:22 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Local variables:
|
|
|
|
* tab-width: 4
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* End:
|
|
|
|
*/
|