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.
This commit is contained in:
Sascha Schumann 1999-08-28 14:00:44 +00:00
parent 52cd153723
commit 053712c95d

View File

@ -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: {