#39022 [Opn->Bgs]: Problems with some environment variables
| From: | tony2001@php.net | Date: | Tue, 03 Oct 2006 15:13:11 +0000 |
| Subject: | #39022 [Opn->Bgs]: Problems with some environment variables | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-103038@lists.php.net to get a copy of this message | ||
ID: 39022
Updated by: tony2001@php.net
Reported By: o dot schneidereit at gmx dot de
-Status: Open
+Status: Bogus
Bug Type: CGI related
Operating System: WinXp
PHP Version: 5.1.6
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2006-10-03 09:52:12] o dot schneidereit at gmx dot de
Description:
------------
hello,
I use the php-cgi.exe (i tested PHP/5.1.6 and PHP/5.2.0RC5-dev) in my
own written http-server.
and now, if i set one of the following below environment variables, i
get the error message
Status: 404
X-Powered-By: PHP/5.1.6
Content-type: text/html
No input file specified.
the environment variables are:
SERVER_NAME
GATEWAY_INTERFACE
REQUEST_METHOD
SERVER_SOFTWARE
the bug is easy to produce. i written follow batch to produce the bug.
if you remark the "set" lines the php-cgi.exe works fine but if you
remove one of the "rem" you get the error message. the hello.php file
in the batch simply contains "<?php phpinfo(); ?>".
this ist the batch file:
rem set SERVER_NAME=192.168.0.11
rem set GATEWAY_INTERFACE=CGI/1.1
rem set REQUEST_METHOD=GET
rem set SERVER_SOFTWARE=TestName
c:\php\php-cgi.exe hello.php
pause
btw.: the php.exe works fine with All environment variables which i
set.
greetz
olaf
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39022&edit=1