From: [EMAIL PROTECTED] Operating system: Win*/Slackware PHP version: 4.1.2 PHP Bug Type: Feature/Change Request Bug description: way to get *actual* filename code is in (include() breaks available methods)
There doesn't appear to be a way to get the filename of code that is currently executing. Eg. echo $SCRIPT_FILENAME; or echo $PHP_SELF; works fine in most situations, but as soon as the file containing this code is included in another, they start to return the filename of the includING file. (not the includED one). I understand this generally goes against the purpose of include() but this functionality would be very useful. Thanks -- Edit bug report at http://bugs.php.net/?id=16459&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16459&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16459&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16459&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16459&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16459&r=support Expected behavior: http://bugs.php.net/fix.php?id=16459&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16459&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16459&r=submittedtwice