Bug #17806: SCRIPT_NAME wrong in CGI mode

From: Date: Mon, 17 Jun 2002 19:51:00 +0000
Subject: Bug #17806: SCRIPT_NAME wrong in CGI mode
Groups: php.bugs php.doc 
Request: Send a blank email to php-bugs+get-10930@lists.php.net to get a copy of this message
From: schirmer@taytron.net Operating system: Linux PHP version: 4.1.2 PHP Bug Type: Documentation problem Bug description: SCRIPT_NAME wrong in CGI mode Script is described in the doc as: 'SCRIPT_NAME' Contains the current script's path. This is useful for pages which need to point to themselves. This is true for the mod_php version. But if you are running php as CGI (under Apache at least) it isn't true. SCRIPT_NAME then points to the php bin path, not the script name. Example (Apache conf): ScriptAlias /php-engine /web/tools/php Action x-php-cgi /phh-engine/php would result in a SCRIPT_NAME of /php-engine/php -- Edit bug report at http://bugs.php.net/?id=17806&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17806&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17806&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17806&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17806&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17806&r=support Expected behavior: http://bugs.php.net/fix.php?id=17806&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17806&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17806&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17806&r=globals

« previous php.bugs (#10930) next »