SERVER_NAME

From: Date: Wed, 04 Jun 2003 08:36:31 +0000
Subject: SERVER_NAME
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9644@lists.php.net to get a copy of this message
I downloaded the last CVS version,and I notice that in the Smarty_Compiler.class.php, we have:
            case 'get':
                $compiled_ref = "\$GLOBALS['HTTP_GET_VARS']";
                break;
            case 'post':
                $compiled_ref = "\$GLOBALS['HTTP_POST_VARS']";
                break;
            case 'cookies':
                $compiled_ref = "\$GLOBALS['HTTP_COOKIE_VARS']";
                break;
            case 'env':
                $compiled_ref = "\$GLOBALS['HTTP_ENV_VARS']";
                break;
            case 'server':
                $compiled_ref = "\$GLOBALS['HTTP_SERVER_VARS']";
                break;
            case 'session':
                $compiled_ref = "\$GLOBALS['HTTP_SESSION_VARS']";
                break;
I believed, we had to use: $_SERVER, ... Did I download a bad version, or? Steve

« previous php.smarty.general (#9644) next »