Re: [SMARTY] A warning with register_globals Off + E_ALL
| From: | Michal Prinke | Date: | Mon, 15 Apr 2002 19:12:21 +0000 |
| Subject: | Re: [SMARTY] A warning with register_globals Off + E_ALL | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3746@lists.php.net to get a copy of this message | ||
Monte Ohrt wrote:
> I'd like to use the new PHP variables, but this limits Smarty to newer
> versions of PHP. (We've recently added functionality that requires PHP
> 4.0.6+) A workaround is to determine the version of PHP on-the-fly, but
> this starts getting messy.
Is it really necessary to stay compatibile with the old versions of PHP?
The new 4.1.0+ syntax ($_REQUEST[], $_SERVER[]...) was made to make scripts
safer, so it should be used... besides, updating PHP on the server
is reasonably easy process... Personally speaking, I'd rather stick to
the newest PHP than turn the error_reporting off, which really SHOULDN'T
be done during the developement stage.
--- Michal