#21261 [Opn]: $_SERVER['PHP_SELF'] gives wrong info

From: Date: Mon, 06 Jan 2003 17:06:58 +0000
Subject: #21261 [Opn]: $_SERVER['PHP_SELF'] gives wrong info
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-29208@lists.php.net to get a copy of this message
ID: 21261 User updated by: undream@yifan.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: 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 Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2002-12-30 20:21:48] pollita@php.net Probable cause found.... Checking with submitter of prior patch. ------------------------------------------------------------------------ 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

« previous php.bugs (#29208) next »