#19592 [Com]: PHP_SELF is not correct with --enable-discard-path
| From: | makler+phpbug at man dot torun dot pl | Date: | Thu, 03 Oct 2002 12:36:20 +0000 |
| Subject: | #19592 [Com]: PHP_SELF is not correct with --enable-discard-path | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-21374@lists.php.net to get a copy of this message | ||
ID: 19592
Comment by: makler+phpbug@man.torun.pl
Reported By: san@cobalt.rmnet.it
Status: Open
Bug Type: URL related
Operating System: GNU/Linux
PHP Version: 4.2.3
New Comment:
You can find my patch proposition for this PHP Bug at:
http://groups.google.com/groups?selm=amelb7%24297k%241%40FreeBSD.csie.NCTU.edu.tw
(I have sent this to php-dev list, but there was
no response from php core developers)...
Maybe updating this bug report would make any change.
Previous Comments:
------------------------------------------------------------------------
[2002-09-25 12:38:24] san@cobalt.rmnet.it
In absence of a PATH_INFO PHP_SELF is correct
( it is set to the value of SCRIPT_NAME )
But when a PATH_INFO is given PHP_SELF is set to
its value. For example:
URI: /php4info.cgi --- PHP_SELF: /php4info.cgi
URI: /php4info.cgi/test --- PHP_SELF: /test
Of course the scripts themself start with #!/path/to/php4
And the interpreter was compiled with --enable-discard-path
------------------------------------------------------------------------
[2002-09-25 10:42:57] sniper@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2002-09-25 08:57:43] san@cobalt.rmnet.it
When compiled with --enable-discrd-path
PHP does not provide a valid PHP_SELF.
It seems to me as simple as concatenating
SCRIPT_NAME with PATH_INFO, do I miss something ?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19592&edit=1