Re: error_reporting E_ALL friendly Smarty_compiler

From: Date: Mon, 23 Apr 2001 19:22:09 +0000
Subject: Re: error_reporting E_ALL friendly Smarty_compiler
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-574@lists.php.net to get a copy of this message
On Mon, 23 Apr 2001, Cynic wrote: > I think Andrei might answer this question: is an explicit > isset() check more costly than a notice inhibited by '@' or > by lowering the error_reporting level? I mean, what are the > internals? isset() check is unquestionably more costly than the @ operator. In the latter case, the compiler simply saves the current error_reporting level, sets it to 0, then executes the expression that @ applies to, and restores the error_reporting level. I'd rather use @ in cases like list() = explode(). -Andrei What's hard, in hacking as in fiction, is not the writing, it's deciding what to write. -- Neal Stephenson

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