PHP 4.0 Bug #7722: script filename not passed to .cgi
| From: | tictactux at surfeu dot ch | Date: | Thu, 09 Nov 2000 13:38:59 +0000 |
| Subject: | PHP 4.0 Bug #7722: script filename not passed to .cgi | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-37540@lists.php.net to get a copy of this message | ||
From: tictactux@surfeu.ch
Operating system: NT4 / Linux 2.2.17
PHP version: 4.0.3pl1
PHP Bug Type: Other web server
Bug description: script filename not passed to .cgi
When using php4.03pl1 as a .cgi (both from source or win32 binaries), the script filename is not
passed to php[.exe].
When I set the document root to /usr/local/www, then php complains that it was 'unable to open
/usr/local/www in unknown at line 0.'
When I set the document root to /usr/local/www/cgi-bin/test.php, then - miracle! - test.php is
loaded. (test.php will be loaded regardless of what other script I try to access, as I set the
doc_root to /usr/local/www/cgi-bin/test.php...)
Same both under Linux and WinNT. Seems that the script name is not appended to doc_root.
The SCRIPT_NAME variable is set correctly when I look at the phpinfo() output.
I set the display_startup_error to on; else I'd have the 'document contains no data'
error. The rest of the .ini (except from the doc_root entry) is as shipped.
Same stuff works fine with php 3.0.17.
Shouldn't PHP get the contents from the SCRIPT_NAME variable and add/mangle it to the doc_root
setting?
Regards, Ben
--
Edit Bug report at: http://bugs.php.net/?id=7722&edit=1