php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39022 Problems with some environment variables
Submitted: 2006-10-03 09:52 UTC Modified: 2006-10-03 15:13 UTC
From: o dot schneidereit at gmx dot de Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 5.1.6 OS: WinXp
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: o dot schneidereit at gmx dot de
New email:
PHP Version: OS:

 

 [2006-10-03 09:52 UTC] 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



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-03 15:13 UTC] tony2001@php.net
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


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 17:01:30 2024 UTC