ID:               38857
 User updated by:  christian dot korff at gmail dot com
 Reported By:      christian dot korff at gmail dot com
-Status:           Bogus
+Status:           Open
 Bug Type:         CGI related
 Operating System: Gentoo Linux
 PHP Version:      5.1.6
 New Comment:

ah, I understood. However this isn't a bogus as the error mesage is
only for those who know that it means.

A more informative error message would be better for admins and
developers. I personally run a thttpd webserver on my local machine for
testing (just because I didn't set up the big apache yet) and it seems
that thttpd (thttpd/2.25b 29dec2003) doesn't set these required env.


Previous Comments:
------------------------------------------------------------------------

[2006-09-17 08:08:58] [EMAIL PROTECTED]

Expected result.
When those variables are declared, SCRIPT_FILENAME and PATH_TRANSLATED
are required too.

------------------------------------------------------------------------

[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

Reply via email to