Lately when i was debugging some PHP file with XDebug (under Eclipse on Ubuntu) i came across a strange behaviour:
print(__FILE__);
resulted in
Create a breakpoint on line print(__FILE__); and analyse which variables are available to you.