Bug #2386 Updated: $PHP_SELF doesn't handle $PATH_INFO correctly
| From: | sander@php.net | Date: | Sun, 16 Jun 2002 12:58:34 +0000 |
| Subject: | Bug #2386 Updated: $PHP_SELF doesn't handle $PATH_INFO correctly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-10700@lists.php.net to get a copy of this message | ||
ID: 2386
Updated by: sander@php.net
Reported By: phpbugs@reuben.com
-Status: Open
+Status: Bogus
Bug Type: Misbehaving function
Operating System: Linux
PHP Version: 3.0.12
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately, PHP 3 is no longer supported. Please download
the latest version of PHP 4 from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
Previous Comments:
------------------------------------------------------------------------
[2001-07-22 17:05:20] andy@php.net
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.
------------------------------------------------------------------------
[1999-09-27 02:39:52] phpbugs@reuben.com
$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