php-src/main/php_globals.h

126 lines
3.1 KiB
C
Raw Normal View History

1999-07-16 13:13:16 +00:00
/*
+----------------------------------------------------------------------+
| PHP version 4.0 |
+----------------------------------------------------------------------+
| Copyright (c) 1997, 1998, 1999, 2000 The PHP Group |
1999-07-16 13:13:16 +00:00
+----------------------------------------------------------------------+
| This source file is subject to version 2.01 of the PHP license, |
1999-07-16 13:13:16 +00:00
| that is bundled with this package in the file LICENSE, and is |
| available at through the world-wide-web at |
| http://www.php.net/license/2_01.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. |
+----------------------------------------------------------------------+
| Authors: Zeev Suraski <zeev@zend.com> |
+----------------------------------------------------------------------+
*/
1999-04-09 19:16:46 +00:00
#ifndef _PHP_GLOBALS_H
#define _PHP_GLOBALS_H
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
# 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)
extern PHPAPI int core_globals_id;
1999-04-09 19:16:46 +00:00
#else
# define PLS_D
# define PLS_DC
# define PLS_C
# define PLS_CC
# define PG(v) (core_globals.v)
# define PLS_FETCH()
extern ZEND_API struct _php_core_globals core_globals;
1999-04-09 19:16:46 +00:00
#endif
typedef struct _php_http_globals {
zval *post;
zval *get;
zval *cookie;
zval *server;
zval *environment;
2000-02-26 18:59:29 +00:00
zval *post_files;
} php_http_globals;
struct _php_tick_function_entry;
1999-04-09 19:16:46 +00:00
struct _php_core_globals {
zend_bool magic_quotes_gpc;
zend_bool magic_quotes_runtime;
zend_bool magic_quotes_sybase;
zend_bool asp_tags;
zend_bool short_tags;
zend_bool allow_call_time_pass_reference;
zend_bool zend_set_utility_values;
zend_bool output_buffering;
zend_bool implicit_flush;
zend_bool safe_mode;
zend_bool sql_safe_mode;
char *safe_mode_exec_dir;
zend_bool enable_dl;
1999-04-10 16:25:23 +00:00
long memory_limit;
1999-04-10 13:32:47 +00:00
int error_reporting;
zend_bool track_errors;
zend_bool display_errors;
zend_bool log_errors;
char *error_log;
1999-04-10 16:25:23 +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
char *upload_tmp_dir;
long upload_max_filesize;
char *auto_prepend_file;
char *auto_append_file;
1999-04-10 16:25:23 +00:00
char *arg_separator;
char *gpc_order;
char *variables_order;
1999-04-10 16:25:23 +00:00
1999-09-12 20:36:48 +00:00
zend_bool expose_php;
zend_bool track_vars;
zend_bool register_globals;
zend_bool register_argc_argv;
1999-04-10 16:25:23 +00:00
zend_bool y2k_compliance;
1999-04-23 20:20:30 +00:00
short connection_status;
short ignore_user_abort;
long max_execution_time;
unsigned char header_is_being_sent;
zend_llist tick_functions;
php_http_globals http_globals;
1999-04-09 19:16:46 +00:00
};
1999-04-23 20:20:30 +00:00
#endif /* _PHP_GLOBALS_H */
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
*/