From: christian dot korff at gmail dot com Operating system: Gentoo Linux PHP version: 5.1.6 PHP Bug Type: CGI related Bug description: when env variable GATEWAY_INTERFACE is set php returns No input file specified.
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 bug report at http://bugs.php.net/?id=38857&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38857&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38857&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38857&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38857&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38857&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38857&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38857&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38857&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38857&r=support Expected behavior: http://bugs.php.net/fix.php?id=38857&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38857&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38857&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38857&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38857&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38857&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38857&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38857&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38857&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38857&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38857&r=mysqlcfg