Re: [SMARTY] SERVER_NAME

From: Date: Fri, 06 Jun 2003 12:20:31 +0000
Subject: Re: [SMARTY] SERVER_NAME
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9658@lists.php.net to get a copy of this message
As far as I can recall, they have always been $GLOBALS['HTTP_*_VARS']. You can go back through the CVS logs and look at each version to verify that, though. steve wrote:
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
-- Paul Lockaby paul@paullockaby.com http://www.paullockaby.com

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