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

From: Date: Sun, 29 Dec 2002 04:51:33 +0000
Subject: #21261 [Opn->Fbk]: $_SERVER['PHP_SELF'] gives wrong info
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-28646@lists.php.net to get a copy of this message
ID: 21261 Updated by: pollita@php.net Reported By: undream@yifan.net -Status: Open +Status: Feedback Bug Type: Scripting Engine problem Operating System: linux 2.4.18 - slack 8.1 PHP Version: 4.3.0 New Comment: 1) What webserver are you running? (and what version?) 2) Since you are running as a CGI can you please do an strace on this page? Example (correct the file paths as necessary, you may need to install strace first): strace /usr/local/bin/php -f /var/www/env.php 2> /var/www/bug-21261.log Provide a URL to this strace so that the problem can be further diagnosed. Previous Comments: ------------------------------------------------------------------------ [2002-12-28 22:05:09] undream@yifan.net A call to http://localhost/env.php with env.php containing a phpinfo() call returns this for $_SERVER['PHP_SELF'] = ocs/env.php I have no idea what 'ocs' is. This is run on a Konqueror 3.1 browser. PHP is ran as CGI. Previous php (4.2.3) compiled using the _exact_ same setup gives the correct info (localhost/env.php) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21261&edit=1

« previous php.bugs (#28646) next »