A warning with register_globals Off + E_ALL
| From: | Michal Prinke | Date: | Mon, 15 Apr 2002 03:23:10 +0000 |
| Subject: | A warning with register_globals Off + E_ALL | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-3720@lists.php.net to get a copy of this message | ||
When I turn off register_globals (to get a little bit more secure),
I get a warning (having error_reporting() = E_ALL) about a nonexistent index.
The warning is caused by the following line (Smarty.class.php, line 486):
> strstr($GLOBALS['QUERY_STRING'], $this->_smarty_debug_id))
Because I like to keep register_globals off, I solve the problem by
replacing "$GLOBALS" with "$_REQUEST" - and so, the warning disappears.