|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-01-12 14:46 UTC] lobbin@php.net
[2002-01-17 19:32 UTC] sbeam at ne dot mediaone dot net
[2002-03-07 14:26 UTC] jamie-php at hungry dot com
[2002-03-26 18:50 UTC] morissette at dmsolutions dot ca
[2002-06-13 18:04 UTC] sniper@php.net
[2002-10-24 08:35 UTC] morissette at dmsolutions dot ca
[2002-10-28 23:27 UTC] yohgaki@php.net
[2002-10-29 04:24 UTC] sniper@php.net
[2002-11-01 09:34 UTC] morissette at dmsolutions dot ca
[2002-11-14 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 23:00:01 2025 UTC |
If PHP is used as a CGI program via: Action php-script /cgi-bin/php AddHandler php-script .php .php3 any .php page which is not found results in 500 SERVER ERROR in the browser instead of 404 NOT FOUND. The php binary is returning nothing in its response to this situation. To wit: The Apache error_log reports "Premature end of script headers" The script_log (enabled with Apache's ScriptLog directive) reports: %% [Wed Aug 29 12:09:58 2001] GET /cgi-bin/php/nothere.php HTTP/1.0 %% 500 /usr/local/httpd/cgi-bin/php %request Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */* Accept-Charset: iso-8859-1,*,utf-8 Accept-Encoding: gzip Accept-Language: en Connection: Keep-Alive Host: localhost User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.6 i686) %response ### php was compiled with "'./configure' '--with-mysql=/usr' '--with-gd' '--with-imagick' '--enable-discard-path' '--enable-force-cgi-redirect'"