2013-05-18 00:18:31
0
In a newly installed MAMP, an uncaught PHP exception is causing an HTTP 500 server error, instead of being trapped by PHP. For example, this program causes a 500:
That's the whole file -- no calls to set_error_handler, or anything else. On my other machine, I have XDebug installed, and uncaught exceptions produce an XDebug message, so the two situations aren't directly comparable.
Everything I've read online says that uncaught exceptions result in a fatal error from PHP, and that's the behavior I recall seeing prior to installing XDebug on that other machine.
Ideas?
(Please don't tell me to catch the exception. I'm trying to investigate what happens with uncaught exceptions. My question is about them.)