Smarty 2.1.0 - GLOBALS and error_reporting and CVS etc.

From: Date: Thu, 02 May 2002 10:45:07 +0000
Subject: Smarty 2.1.0 - GLOBALS and error_reporting and CVS etc.
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3978@lists.php.net to get a copy of this message
Hello, 1. Thanks for fixing some bugs from the previous version of Smarty! Still I can see one: In the line 568 of Smarty.class.php (fetch() function), you can find $GLOBALS['QUERY_STRING']. Since the newest version of PHP turns off register_globals by default, it might cause errors. I replaced this with $_SERVER['QUERY_STRING'] but you can use $HTTP_SERVER_VARS or check for the version of PHP to stay compatibile with 4.0.6. 2. Finally, I can keep error_reporting(E_ALL) when using Smarty. But is "error_reporting(error_reporting() & ~E_NOTICE)" really the final solution? Turning the warnings off instead of removing their causes? I understand that it can take a lot of time to put those isset()'s and $i < count($array) everywhere, but it would be more professional. 3. I am lost in Smarty's CVS. Can you give me an exact url pointing to the newest CVS release of Smarty on the WWW (the file itself)? Thank you!

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