diff options
author | Zeev Suraski <zeev@php.net> | 2000-02-26 16:36:57 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-02-26 16:36:57 +0000 |
commit | 0e90b9dc83956f7de3d269cfe9b1be42618c2812 (patch) | |
tree | d80fb084aaefaa5abccfa48e38ab07d598df7356 /main/php_globals.h | |
parent | e6146d6bf382df0de28271cc58fce03afc20797b (diff) | |
download | php-git-0e90b9dc83956f7de3d269cfe9b1be42618c2812.tar.gz |
@- The various $HTTP_*_VARS[] are now protected, and cannot be manipulated by
@ user input (Zeev)
This patch is untested! I'll only have time to test it thoroughly in a couple of hours...
Diffstat (limited to 'main/php_globals.h')
-rw-r--r-- | main/php_globals.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/main/php_globals.h b/main/php_globals.h index 9c3ee04294..1a1a6db707 100644 --- a/main/php_globals.h +++ b/main/php_globals.h @@ -42,6 +42,14 @@ 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; +} php_http_globals; + struct _php_tick_function_entry; struct _php_core_globals { @@ -100,6 +108,8 @@ struct _php_core_globals { unsigned char header_is_being_sent; zend_llist tick_functions; + + php_http_globals http_globals; }; |