ID: 2386
Updated by: andy
Reported By: [EMAIL PROTECTED]
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:

 /script.php3/more/path/info

then $PHP_SELF contains:

 /script.php3/more/path/info

when it *seems* like it should only be:

 /script.php3

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 http://bugs.php.net/?id=2386&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
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