How to find out class/method/function name from filename and line?

PetraR

New Member
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.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?
 
Back
Top