#8344 [Com]: 404 errors in Zeus?
| From: | jagrant at nrcan dot gc dot ca | Date: | Tue, 22 Oct 2002 23:55:14 +0000 |
| Subject: | #8344 [Com]: 404 errors in Zeus? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-23076@lists.php.net to get a copy of this message | ||
ID: 8344
Comment by: jagrant@nrcan.gc.ca
Reported By: tim@timmy.org
Status: Closed
Bug Type: Feature/Change Request
Operating System: Solaris 7/Zeus
PHP Version: 4.0.4
New Comment:
"it ran the PHP extension just fine"? How can you "run" something that
doesn't exist? AFAIC, it's a bug.
Our servers are required to show custom 'corporate' error pages for the
standard errors (404, 500 etc.). If the server can not detect a missing
.php page, we can not fulfil that requirement.
Is there a mechanism for PHP to pass a "file not found" error code back
to the server so that it can report 404 to the client's browser? If
so, that would seem to be the best approach.
http://support.zeus.com/extra/zeustalk-archive/0676.html
says that this
is a "feature" that allows a response to any URL. I can see that
php.net uses that to good advantage,i.e. http://php.net/fopen can
be
used to locate & display the 'fopen' doc page. But surely there's a
difference between http://php.net/fopen and http://php.net/fopen.php
and the latter should return 404 instead of going straight into the
function search mechanism?
John A. Grant
Geological Survey of Canada
Previous Comments:
------------------------------------------------------------------------
[2001-01-17 11:30:17] joosters@php.net
The file not found message comes from PHP, not the web server.
As far as the web server is concerned, it ran the PHP extension just
fine, hence the '200' code in the logs.
Handlers in Zeus, e.g. for .php files, get called whether or not the
file requested in the URL actually exists. This is a feature!
(see http://support.zeus.com/extra/zeustalk-archive/0676.html
)
------------------------------------------------------------------------
[2000-12-20 19:18:19] tim@timmy.org
Hi, I'm not sure if this is a bug or a feature or what, but if I try to
hit a page that doesn't exist using PHP under Zeus/ISAPI, I get:
Warning: Failed opening
'/web/content/straight/teencumers.com/htdocs/foo.phtml' for inclusion
(include_path='.:/web/php') in Unknown on line 0
plus it shows up in my log as a 200, not a 404.
--Timmy
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=8344&edit=1