What function was last called in PHP?
<p>I have a script and I want to enable logging of errors. The first thing I want to log is where the script was called from? I.e. In which part of my code did the error occur and maybe even a list of how it got to the point where it broke? What functions were called etc? </p>
