Re: handling errors

From: Date: Thu, 27 Sep 2001 10:00:43 +0000
Subject: Re: handling errors
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-68974@lists.php.net to get a copy of this message
> Right in principle. But there are cases (common ones), like the one shown > above, where errors are unavoidable and normal. For these cases the @ > operator is the right thing. Generally you're right though - error > reporting should be set to E_ALL and reasons of avoidable errors/warnings > should be eliminated. Correct me if I'm wrong, but I saw some posts coming along on this list yesterday (I think) telling that getImageSize can't handle URL's. So... in that case... Don't use @, but check the syntax of the variable you want to pass as parameter for getImageSize. But you're right about the *very* few cases in which it is unavoidable. Though, this isn't one of 'm. -- * R&zE: -- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze@datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- ««««««««««««««««««««««««

« previous php.general (#68974) next »