#14409 [Com]: request for nonexistent file does not return 404 error

From: Date: Mon, 23 Sep 2002 18:46:12 +0000
Subject: #14409 [Com]: request for nonexistent file does not return 404 error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-20128@lists.php.net to get a copy of this message
ID: 14409 Comment by: stas_k_php@tiger.unisquad.com Reported By: support@teamITS.com Status: Closed Bug Type: Apache related Operating System: IRIX64 vega 6.5 04191225 IP27 PHP Version: 4.2.2 New Comment: Dear Kalowsky, I've just reproduced it on php4-200209200000 on Apache. It said php-4.3.0 in phpinfo(), and it is more recent than your post. You should understand that it is Apache-related bug, so IIS testing does not apply here, and it is stated in original bug report. Probably you also used php module in your testing on FreeBSD, while original bug report says that PHP was installed as CGI. The trouble looks to me as follows: if php CGI meets nonexistent php file, it does not output anything, while it should output error page, and I would really appreciate if I'd be able to tune that page via php.ini or whatever. Unfortunately, I can't reopen this bug, so someone please reopen it. Thank you. Previous Comments: ------------------------------------------------------------------------ [2002-08-13 00:49:48] support@teamITS.com Duplicated again with PHP 4.2.2 on Apache 1.3.23 under Windows XP. I don't have access to 3.0. ------------------------------------------------------------------------ [2002-08-10 09:59:27] kalowsky@php.net Unable to reproduce this on IIS with PHP 4.3.0-DEV, and on FreeBSD 4.6. Please try a newer version. Marking as closed, because I guess this was a valid bug, and has been fixed. ------------------------------------------------------------------------ [2002-07-31 09:01:16] phil@lchost.nospam.co.uk Forgot to tell you that it's an i386 Architecture :) ------------------------------------------------------------------------ [2002-07-31 09:00:03] phil@lchost.nospam.co.uk Same problem is occuring on Debian 3.0 Linux - worked fine (as a cgi) on the older version of Apache present in 2.2r7 - Only started 500 erroring instead of 404'ing when Apache 1.3.26 was installed as part of the upgrade. ------------------------------------------------------------------------ [2002-06-18 11:25:24] support@teamITS.com Note PHP version change from 4.0.6 to 4.1.2 (same issue). error_log entry: [Tue Jun 18 11:13:31 2002] [error] [client 64.81.224.87] Premature end of script headers: /u/httpd/cgi-bin/php4.cgi Interesting note, however...the problem does occur now on IIS/PHP 4.1.2 - "CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:" (there the error ends). ------------------------------------------------------------------------ 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

« previous php.bugs (#20128) next »