Re: Coding Standards : misuse of the @ error control operator
| From: | Andrey Hristov | Date: | Thu, 24 Apr 2003 14:15:04 +0000 |
| Subject: | Re: Coding Standards : misuse of the @ error control operator | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-15467@lists.php.net to get a copy of this message | ||
> assuming that it is a bug with dbg.. I would support "banning" it from
> items likely to cause fatal errors or highly unpredictable behaviour -
> like @include or @include_once.. - however just for hiding uninitialized
> variables where it replaces if isset$x && $x, does make a bit of sense..
!empty($x) is a good substitute for the combination above and no need of the
@ operator.
> Regards
> Alan
>
Regards,
Andrey