#38857 [Opn->Bgs]: when env variable GATEWAY_INTERFACE is set php returns No input file specified.
ID: 38857
Updated by: tony2001@php.net
Reported By: christian dot korff at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: CGI related
Operating System: Gentoo Linux
PHP Version: 5.1.6
New Comment:
Expected result.
When those variables are declared, SCRIPT_FILENAME and PATH_TRANSLATED
are required too.
Previous Comments:
------------------------------------------------------------------------
[2006-09-17 00:40:15] christian dot korff at gmail dot com
same seems to apply for REQUEST_METHOD
------------------------------------------------------------------------
[2006-09-16 23:21:30] christian dot korff at gmail dot com
Description:
------------
PHP has somehow trouble with the GATEWAY_INTERFACE.
I'm using Gentoo's dev-lang/php-5.1.6-r4 package. (Gentoo provides
build specs called ebuilds. With these ebuilds portage builds and
install the packages)
PHP 5.1.6-pl4-gentoo with Hardening-Patch 0.4.15 (cgi-fcgi) (built: Sep
16 2006 21:56:04)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
Reproduce code:
---------------
1) take a php script
2) run php-cgi -n -f foobar.php
3) now set the env variable GATEWAY_INTERFACE and run
4) php-cgi -n -f foobar.php again
Expected result:
----------------
PHP should always output HTTP headers with the cgi sapi. When called
this GATEWAY_INTERFACE env variable set php behaves right about http
headers. However it ends up with No input file specified.
Actual result:
--------------
On the first one PHP does output html code when phpinfo() is called but
no http header things are printed.
On the second one PHP does http headers:
Status: 404
X-Powered-By: PHP/5.1.6-pl4-gentoo with Hardening-Patch
Content-type: text/html
No input file specified.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38857&edit=1
Thread (5 messages)