#21261 [Opn]: $_SERVER['PHP_SELF'] gives wrong info
| From: | shane@php.net | Date: | Tue, 07 Jan 2003 06:42:34 +0000 |
| Subject: | #21261 [Opn]: $_SERVER['PHP_SELF'] gives wrong info | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29272@lists.php.net to get a copy of this message | ||
ID: 21261
Updated by: shane@php.net
Reported By: undream@yifan.net
Status: Open
Bug Type: Scripting Engine problem
Operating System: linux 2.4.18 - slack 8.1
PHP Version: 4.3.0
Assigned To: shane
New Comment:
undream@yifan.net: email me your httpd.conf, php.ini and the test
script you use. You can remove anything from the files that are
private. Also, as per spec PATH_TRANSLATED will be empty unless you
have PATH_INFO, which is path data *after* the script in a url:
http://host/script.php/path/info?query-string
The only thing I'm concerned about is the garbled PHP_SELF. PHP_SELF
is the same as SCRIPT_NAME, is SCRIPT_NAME also garbled?
Previous Comments:
------------------------------------------------------------------------
[2003-01-06 11:06:47] undream@yifan.net
Negative. Patch not only did not work (I applied it to
current 4.3.0) but I now no longer have a
$_SERVER['PATH_TRANSLATED'] variable .
So $_SERVER['PHP_SELF'] remains corrupted and
$_SERVER['PATH_TRANSLATED'] gives some kind of udefined
error.
Joshua
------------------------------------------------------------------------
[2003-01-05 21:58:19] shane@php.net
The patch at
http://www.caraveo.com/php/cgi.patch
Should fix this problem. Please try this and let me know. It's
against cvs HEAD from today.
------------------------------------------------------------------------
[2003-01-02 10:54:32] tapken@engter.de
I'm using php with cgiwrap.
http://cgiwrap.unixtools.org/
I added two small patches as described in Bug #21301 but i don't know
if they work with current cvs version.
In httpd.conf:
AddHandler php-cgiwrap .php
Action php-cgiwrap /cgiwrapper/php-cgiwrap/<USER>
ScriptAlias /cgiwrapper/ /usr/local/cgiwrap/
------------------------------------------------------------------------
[2003-01-01 11:21:36] undream@yifan.net
Are you talking about this?
ScriptAlias /cgi/ /var/www/htdcos/cgi/
Action application/x-httpd-php /cgi/php
AddType application/x-httpd-php .php
I can also post my ini and my configure script though you
can probably get that info from the env.html I posted
earlier.
------------------------------------------------------------------------
[2002-12-31 01:21:50] shane@caraveo.com
Send me the pertinent lines out of httpd.conf that you have used to
configure php so I can test with the same settings.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/21261
--
Edit this bug report at http://bugs.php.net/?id=21261&edit=1