How to find out class/method/function name from filename and line?
<p>I'm working on an error handler and I find the information I get from debug_backtrace() highly unreliable. I thought of using Reflection, but while it lets one get the filename and line numbers from class and method name, it doesn't seem to allow going the other way.</p>

<p>Is there any relatively simple, reliable and reasonably lightweight way to find out the name of the class/method/function just from filename and line number?</p>
