cvs: /php4 main.c
| From: | Sascha Schumann | Date: | Sat, 28 Aug 1999 14:00:44 +0000 |
| Subject: | cvs: /php4 main.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-3809@lists.php.net to get a copy of this message | ||
sas Sat Aug 28 10:00:44 1999 EDT
Modified files:
/php4 main.c
Log:
when "track_vars" is disabled and a script which contains <?php_track_vars?> is
accessed for the first time, track vars were not created properly.
Index: php4/main.c
diff -u php4/main.c:1.103 php4/main.c:1.104
--- php4/main.c:1.103 Sat Aug 28 07:17:28 1999
+++ php4/main.c Sat Aug 28 10:00:44 1999
@@ -19,7 +19,7 @@
*/
-/* $Id: main.c,v 1.103 1999/08/28 11:17:28 zeev Exp $ */
+/* $Id: main.c,v 1.104 1999/08/28 14:00:44 sas Exp $ */
#include <stdio.h>
@@ -569,9 +569,17 @@
{
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: {