Date: 11/09/00
- Next message: void: "Re: [PHP-DEV] PHP 4.0 Bug #7720 Updated: Return address instackoverwritten?"
- Previous message: Adam Wright: "Re: [PHP-DEV] PHP 4.0 Bug #7720 Updated: Return address instackoverwritten?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: tictactux <email protected>
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-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: void: "Re: [PHP-DEV] PHP 4.0 Bug #7720 Updated: Return address instackoverwritten?"
- Previous message: Adam Wright: "Re: [PHP-DEV] PHP 4.0 Bug #7720 Updated: Return address instackoverwritten?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

