From 0e90b9dc83956f7de3d269cfe9b1be42618c2812 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Sat, 26 Feb 2000 16:36:57 +0000 Subject: @- 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... --- main/php_globals.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'main/php_globals.h') 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; }; -- cgit v1.2.1