Bug #13606 Updated: $PHP_SELF not always point to script name
| From: | yohgaki@php.net | Date: | Fri, 14 Dec 2001 18:49:08 +0000 |
| Subject: | Bug #13606 Updated: $PHP_SELF not always point to script name | ||
| References: | 1 | Groups: | php.dev php.doc |
| Request: | Send a blank email to php-dev+get-73790@lists.php.net to get a copy of this message | ||
ID: 13606
Updated by: yohgaki
Reported By: flaviovs@magnux.com
Status: Open
Old Bug Type: Scripting Engine problem
Bug Type: Documentation problem
Operating System: Linux+Apache 1.3.20+PHP (DSO)
PHP Version: 4.0.6
New Comment:
Type = Documentation Problem.
When test.php is a script, $PHP_SELF === /test.php/some_string
http://example.com/test.php/some_string
Document should descript this behavior..
Previous Comments:
------------------------------------------------------------------------
[2001-10-08 23:55:32] flaviovs@magnux.com
The docs says that $PHP_SELF contains "The filename of the currently executing script, relative
to the document root." However, if one uses additional PATH_INFO data in the URL, they get
inserted on $PHP_SELF as well.
Example script: <?= $PHP_SELF ?>
http://example.org/example.php
prints "/example.php"
http://example.org/example.php/foobar.html
prints "/example.php/foobar.html"
If this is not a bug in PHP then the docs may need to be updated.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13606&edit=1