Bug #16459: way to get *actual* filename code is in (include() breaks available methods)
| From: | olli at ukgamer dot net | Date: | Sat, 06 Apr 2002 00:07:51 +0000 |
| Subject: | Bug #16459: way to get *actual* filename code is in (include() breaks available methods) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-4182@lists.php.net to get a copy of this message | ||
From: olli@ukgamer.net
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