Call stack for fatal errors
Posted: Sat Oct 18, 2008 2:14 am
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
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