Smarty changes error_reporting() level

From: Date: Wed, 08 Oct 2003 06:49:15 +0000
Subject: Smarty changes error_reporting() level
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1885@lists.php.net to get a copy of this message
I use Smarty as the templating library for a much larger application, as I'm sure many of you do. It works wonderfully in that capacity. However, I noticed that Smarty turns off E_NOTICE if it is not running in debug mode. In my application, I want to have total control over the warnings and notices that are generated so that I can find and fix every occurrence. It not always beneficial for me to run Smarty in debug mode, but if I *don't* do run it in debug mode, then Smarty hides valuable information from me. So now, every time I update I have to patch Smarty undo this behaviour. I recognize that by now people have probably built apps that require E_NOTICE to be disabled in order to function properly, so I guess it's not an option to simply undo this behaviour. However, I would love it if we could make this optional. If I submit a patch to make it optional, (perhaps by setting a Smarty global variable) would it be accepted? thanks, -Bharat

« previous php.smarty.dev (#1885) next »