ID: 2386
Updated by: andy
Status: Open
Bug Type: Misbehaving function
Operating System: Linux
PHP Version: 3.0.12
New Comment:

I have confirmed that PHP does this (even in 4.0.6), but I
don't know if it should be considered a bug or if it should
be changed.

Previous Comments:

[1999-09-27 02:39:52] [EMAIL PROTECTED]

$PHP_SELF should always contain the location of the script itself, correct?  Because 
if I use a url like this:


then $PHP_SELF contains:


when it *seems* like it should only be:


as the extra path info is being sent *to* the script (as the variable $PATH_INFO) and 
has nothing to do with where the script is.  If you want to build the full URL again 
you could use "$PHP_SELF . $PATH_INFO".

Does that make sense?  I couldn't find an official reference for what $PHP_SELF is 
*supposed* to describe, but it seems like it should just be the script.

- Isaac


Edit this bug report at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to