From: marcus at names dot co dot uk Operating system: Redhat Linux 7.2 PHP version: 4.3.1 PHP Bug Type: CGI related Bug description: Missing server variables
When building PHP 4.3.1 as a cgi binary, some of the server variables do not get set correctlt. Most importantly, $PHP_SELF and $SCRIPT_NAME are missing altogether. Looking at cgi_main.c, it looks as though $PHP_SELF is inherited from $SCRIPT_NAME for the CGI version - so perhaps this is why they are both missing? I am running under Zeus Web Server 4.2, but the problem is the same when run from the command line. -- Edit bug report at http://bugs.php.net/?id=22919&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22919&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22919&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22919&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22919&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22919&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22919&r=support Expected behavior: http://bugs.php.net/fix.php?id=22919&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22919&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22919&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22919&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22919&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22919&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22919&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22919&r=gnused