#14409 [Asn->Csd]: request for nonexistent file does not return 404 error
| From: | sniper@php.net | Date: | Mon, 26 May 2003 23:22:22 +0000 |
| Subject: | #14409 [Asn->Csd]: request for nonexistent file does not return 404 error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-40465@lists.php.net to get a copy of this message | ||
ID: 14409
Updated by: sniper@php.net
Reported By: support at teamITS dot com
-Status: Assigned
+Status: Closed
Bug Type: CGI related
Operating System: IRIX64 www102 6.5 07091542 IP27
PHP Version: 4.3.2-RC3-dev
Assigned To: shane
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2003-05-25 21:10:24] sniper@php.net
This happens when your php.ini contains something that
causes a non-fatal error message. I had browscap.ini set
to such permissions that it could not be loaded by the CGI binary.
------------------------------------------------------------------------
[2003-05-24 02:25:53] sniper@php.net
that was the latest CVS checkout of PHP_4_3 branch of course,
but it has the same sapi/cgi stuff in it as RC4 has.
------------------------------------------------------------------------
[2003-05-24 02:23:59] sniper@php.net
When using RC4, I get this:
Status: 404 Content-type: text/html X-Powered-By: PHP/4.3.3-dev No
input file specified.
(all text shown on the page, ie. the headers too!)
And when I try this on command line: php-cgi non-existing.php
it just sits there doing nothing.
Shane, this is pretty critical, especially the added headers on the
page for existing file:
tent-type: text/html X-Powered-By: PHP/4.3.3-dev
------------------------------------------------------------------------
[2003-05-24 01:30:03] support at teamITS dot com
Sorry, I have limited methods of testing Unix releases. PHP Version
4.3.2-RC3-dev under Apache now returns "No input file specified." for a
non-existent file, instead of a 404 error. Slightly better than before
but a 404 still seems like the best/target solution, so the web server
can log errors properly.
------------------------------------------------------------------------
[2003-05-18 22:01:36] shane@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Tested with 4.3.2 on windows, 404's are returned fine. Please try the
latest RC of 4.3.2.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/14409
--
Edit this bug report at http://bugs.php.net/?id=14409&edit=1