#18942 [NEW]: $PHP_SELF is set to HTTP_SERVER_VARS[PATH_INFO] if available
| From: | six at aegis-corp dot org | Date: | Fri, 16 Aug 2002 17:39:04 +0000 |
| Subject: | #18942 [NEW]: $PHP_SELF is set to HTTP_SERVER_VARS[PATH_INFO] if available | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-17033@lists.php.net to get a copy of this message | ||
From: six@aegis-corp.org
Operating system: Debian
PHP version: 4.2.2
PHP Bug Type: Other web server
Bug description: $PHP_SELF is set to HTTP_SERVER_VARS[PATH_INFO] if available
With the CGI version of PHP, $PHP_SELF is always set to the value of
HTTP_SERVER_VARS[PATH_INFO] if it is available.
But the PATH_INFO server var does not at all designate the running script,
which is by the SCRIPT_NAME var.
This causes scripts using path_info (URLs like
http://www.example.com/script/arg1/arg2/argX)
to fail when using self
refering links on a server using the CGI version on PHP.
This bus does not exists with the apache module.
--
Edit bug report at http://bugs.php.net/?id=18942&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=18942&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=18942&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18942&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18942&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18942&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18942&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18942&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18942&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18942&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18942&r=globals