From: o dot schneidereit at gmx dot de Operating system: WinXp PHP version: 5.1.6 PHP Bug Type: CGI related Bug description: Problems with some environment variables
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 bug report at http://bugs.php.net/?id=39022&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39022&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39022&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39022&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39022&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39022&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39022&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39022&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39022&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39022&r=support Expected behavior: http://bugs.php.net/fix.php?id=39022&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39022&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39022&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39022&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39022&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39022&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39022&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39022&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39022&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39022&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39022&r=mysqlcfg