Lately when i was debugging some PHP file with XDebug (under Eclipse on Ubuntu) i came across a strange behaviour:
print(__FILE__);
resulted in
I know it is an old question. I solved by assigning it to a variable, then it works fine!
$file = __FILE__; include dirname($file) . '/../whateverfile.php';