Page 1 of 1

PHP Magic Variables ?

Posted: Sat May 25, 2002 5:35 pm
by yrt
I am trying to find out where to get a list of magic variables in PHP, like __FILE__ and the like.

What I'm trying to find is if there is any predefined way to get the name of the current function I'm in or a stacktrace from inside PHP for debugging complex issues.

yrt

Posted: Sat May 25, 2002 6:01 pm
by jason
__LINE__ and __FILE__ are about it..

And nope...stack dumps are not yet possible in PHP.