diff options
author | Zeev Suraski <zeev@php.net> | 2000-09-05 19:06:29 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-09-05 19:06:29 +0000 |
commit | eb3214490287d4f8fd87a0e709f24e56eb97ae12 (patch) | |
tree | db7976f0421b040f53f5ae3ea37b9179327cb563 /main/php_globals.h | |
parent | 3c45b97804205dfe299814d6375d2022ca800d7a (diff) | |
download | php-git-eb3214490287d4f8fd87a0e709f24e56eb97ae12.tar.gz |
- Remove track_vars - it is now always on
- Make the various $HTTP_*_VARS[] arrays be defined always,
even if they're empty
- Fix Win32 build and warnings
Diffstat (limited to 'main/php_globals.h')
-rw-r--r-- | main/php_globals.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/main/php_globals.h b/main/php_globals.h index 37ffe2be9f..f75c168791 100644 --- a/main/php_globals.h +++ b/main/php_globals.h @@ -42,14 +42,13 @@ extern PHPAPI int core_globals_id; extern ZEND_API struct _php_core_globals core_globals; #endif -typedef struct _php_http_globals { - zval *post; - zval *get; - zval *cookie; - zval *server; - zval *environment; - zval *post_files; -} php_http_globals; + +#define TRACK_VARS_POST 1 +#define TRACK_VARS_GET 2 +#define TRACK_VARS_COOKIE 3 +#define TRACK_VARS_SERVER 4 +#define TRACK_VARS_ENV 5 +#define TRACK_VARS_FILES 6 struct _php_tick_function_entry; @@ -103,11 +102,10 @@ struct _php_core_globals { zend_llist tick_functions; - php_http_globals http_globals; + zval *http_globals[6]; zend_bool expose_php; - zend_bool track_vars; zend_bool register_globals; zend_bool register_argc_argv; |