1999-04-10 03:16:46 +08:00
|
|
|
#ifndef _PHP_GLOBALS_H
|
|
|
|
#define _PHP_GLOBALS_H
|
|
|
|
|
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()
|
|
|
|
extern ZEND_API php_core_globals core_globals;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
struct _php_core_globals {
|
1999-06-16 03:05:01 +08:00
|
|
|
long magic_quotes_gpc;
|
|
|
|
long magic_quotes_runtime;
|
|
|
|
long magic_quotes_sybase;
|
1999-04-10 19:22:18 +08:00
|
|
|
|
1999-06-16 03:05:01 +08:00
|
|
|
long asp_tags;
|
|
|
|
long short_tags;
|
1999-04-10 20:17:20 +08:00
|
|
|
|
1999-06-16 03:05:01 +08:00
|
|
|
long safe_mode;
|
|
|
|
long sql_safe_mode;
|
|
|
|
char *safe_mode_exec_dir;
|
|
|
|
long enable_dl;
|
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-06-16 03:05:01 +08:00
|
|
|
long track_errors;
|
|
|
|
long display_errors;
|
|
|
|
long log_errors;
|
|
|
|
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-04-10 21:32:47 +08:00
|
|
|
|
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;
|
1999-04-11 00:25:23 +08:00
|
|
|
|
1999-06-16 03:05:01 +08:00
|
|
|
long track_vars;
|
1999-04-11 00:25:23 +08:00
|
|
|
|
1999-06-16 03:05:01 +08:00
|
|
|
long y2k_compliance;
|
1999-04-24 04:20:30 +08:00
|
|
|
|
1999-06-16 03:05:01 +08:00
|
|
|
unsigned char header_is_being_sent;
|
1999-04-10 03:16:46 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
1999-04-24 04:20:30 +08:00
|
|
|
#endif /* _PHP_GLOBALS_H */
|
1999-06-16 01:06:22 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Local variables:
|
|
|
|
* tab-width: 4
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* End:
|
|
|
|
*/
|