Re: Exceptions
| From: | Richard Lynch | Date: | Sat, 11 Aug 2007 02:12:15 +0000 |
| Subject: | Re: Exceptions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260669@lists.php.net to get a copy of this message | ||
On Thu, August 9, 2007 11:50 am, Peter Pan wrote:
> I'm having an issue where throwing Exceptions are displaying a blank
> page
> even though the Exception is being caught in a try...catch statement.
> This
> is happening on our production server where warnings, errors,
> exceptions,
> etc. are not to be displayed to the user. The assumption is that even
> though an Exception is being thrown it should be caught rather than
> displaying a blank page. Is there a specific configuration variable
> that
> needs to be set in php.ini to allow warnings to not be displayed but
> Exceptions to still be caught? Or is this just a bug? Here is some
> code
> that replicates the issue:
It is also possible that you have some kind of syntax or fatal error
that doesn't allow PHP to continue...
Log errors rather than displaying them and check your webserver logs.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?