From 053712c95db3fafe05ad08935029814c34a1c8e2 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Sat, 28 Aug 1999 14:00:44 +0000 Subject: [PATCH] when "track_vars" is disabled and a script which contains is accessed for the first time, track vars were not created properly. --- main/main.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/main/main.c b/main/main.c index 3f5ae6ade48..647ad3429ae 100644 --- a/main/main.c +++ b/main/main.c @@ -569,9 +569,17 @@ static void php_message_handler_for_zend(long message, void *data) { switch (message) { case ZMSG_ENABLE_TRACK_VARS: { + int old; PLS_FETCH(); - + + old = PG(track_vars); PG(track_vars) = 1; + + if(old == 0) { + php3_treat_data(PARSE_POST, NULL); + php3_treat_data(PARSE_COOKIE, NULL); + php3_treat_data(PARSE_GET, NULL); + } } break; case ZMSG_FAILED_INCLUDE_FOPEN: {