Call stack for fatal errors

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
andreseso
Forum Newbie
Posts: 1
Joined: Sat Oct 18, 2008 2:09 am

Call stack for fatal errors

Post by andreseso »

Hello,

Is it possible to configure PHP so that it shows a debug back trace whenever a Fatal Error occurs. The most difficult errors to debug I have encountered is duplicate class names. As well in my company we will start using function prototypes with the type of class we are passing. As we do not know all entrance points to these functions it would be great to get an idea of where an incorrect type was passed. Another interesting place to have a debug backtrace is when memory gets exhausted.

Is it possible to configure PHP to print the call stack whenever a fatal error occurs?

Thanks,
Andres
Post Reply