Re: Exceptions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux