From:             gazman at email dot si
Operating system: whatever
PHP version:      Irrelevant
PHP Bug Type:     Feature/Change Request
Bug description:  Add a $_SERVER["CURRENT_SCRIPT_NAME"] variable.

Description:
------------
Please add a $_SERVER["CURRENT_SCRIPT_NAME"] variable. It should contain
the name of the current EXECUTING script.

It should be used to tell the code the filename it is in. It would be used
in conjunction with include() and require() functions, as the
$_SERVER["SCRIPT_NAME"] holds the value of the parent script and not the
child script.

It should be fairly easy to do... PHP must know it to parse the file and i
believe you could as well make that availible as a variable from code. (a
read-only variable (constant?) that points to the name of the currently
parsed file)


-- 
Edit bug report at http://bugs.php.net/?id=29746&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29746&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29746&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29746&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29746&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29746&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29746&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29746&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29746&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29746&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29746&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29746&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29746&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29746&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29746&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29746&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29746&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29746&r=float

Reply via email to