added HTTP_SESSION_VARS to list of vars to transform as it is off by default in php5 too

This commit is contained in:
Ralf Becker 2005-07-20 10:20:18 +00:00
parent ef7bff339e
commit 5d3e8d1c86

View File

@ -89,7 +89,7 @@ $modernize = array(
"\r" => '',
);
foreach(array('GET','POST','SERVER') as $name)
foreach(array('GET','POST','SERVER','SESSION') as $name)
{
$modernize['$HTTP_'.$name.'_VARS'] = '$_'.$name;
$modernize['$GLOBALS[\'HTTP_'.$name.'_VARS\']'] = '$_'.$name;
@ -213,4 +213,4 @@ if ($do_replace && ($f = fopen($do_replace,'wb')))
else
{
ob_flush();
}
}