|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-12-10 14:38 UTC] support at teamITS dot com
To reproduce, enter a bogus filename in a browser. For example, http://www.teamITS.com/blahblah.php. The server returns an Internal Server Error rather than a 404 (page not found) error. I reported this to Apache and their response was: "This is the way the appropriate directives work on purpose (although you didn't say just how you had PHP configured to run), since it is possible to create a virtual URL space. The PHP module is the one deciding how to handle requests for nonexisting files." Their issue number was mod_cgi/8683 (as PHP is installed as a CGI module on this server). Sounds to me like they are saying PHP should be returning an error to Apache. If you want more info on the PHP setup on our server, browse to: http://www.teamits.com/phpinfo.php Note that a PHP/IIS4 combination does return a 404 error. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 16:00:01 2025 UTC |
Small addendum. PHP does exit 255 if its target does not exist, but since it has already sent a complete CGI/1.1 HTTP header back to Apache ("Content-type: text/html\n\n"), including the blank line that indicates end of headers, Apache has already parsed and sent a complete 200 OK set of HTTP headers back to the client. No, this is not an Apache bug. Running PHP 4.2.2 as a CGI via an Action directive under Apache 1.3.23 (RedHat patched). From httpd.conf: ## PHP run as a CGI without everyone needing ExecCGI privs AddType application/x-httpd-php .php .php4 .php3 .phtml AddHandler php-script .php .php4 .php3 .phtml Action php-script /lcgi/php