Re: Coding Standards : misuse of the @ error control operator
| From: | Frederic Poeydomenge | Date: | Thu, 24 Apr 2003 11:36:44 +0000 |
| Subject: | Re: Coding Standards : misuse of the @ error control operator | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-15460@lists.php.net to get a copy of this message | ||
Le Thu, 24 Apr 2003 12:18:48 +0100 Davey a écrit:
> I think he meant that without the @ it produces the notice/error, and
> that the argument should be checked before hand rather than relying on
> the error supression which is IMO sloppy coding.
No I didn't meant that : I'm using a PHP Version 4.1.2 (Debian Woody) and it
produce a warning even with the @ operator (perhaps is it a bug in PHP, I don't
know...)
But what I meant is what Davey says : instead of relying on a brute error
suppression with the @ operator (which can work differently with a different
version of php), in that precise case, the arguments should be checked before
using them...
--------------------
Frederic Poeydomenge