From: mjsabby at yahoo dot com
Operating system: Redhat Linux 9 (2.4.20)
PHP version: 4.3.3RC3
PHP Bug Type: Apache2 related
Bug description: PHP files being downloaded on 404's if application/x-httpd-php contains da ext.

Description:
------------
Hello,

I don't know why it is so strange but this is a bug it seems.

I'm running Apache 2.0.47, and PHP 4.3.3RC3

When I add these lines to my apache conf file :

AddType application/x-httpd-php .php .html

And run my PHP scripts, eveyrhting goes great, for both php and html
files. Now what happens is that I also have an ErrorDocument 404
/404.html

Now when a 404 occurs, both these files get downloaded, and it says
downloading file of type application/x-httpd-php, and there is no content
in it, so in IE it says cannot download in Netscape it downloads with 0
byte data.

And when I remove an extension say most of my 404's will be from a .php
file since I've moved my server, so I removed that and when a 404 for .php
files, it works!

Thanks.


--
Edit bug report at [url]http://bugs.php.net/?id=25009&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=25009&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=25009&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=25009&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=25009&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=25009&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=25009&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=25009&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=25009&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=25009&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=25009&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=25009&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=25009&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=25009&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=25009&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=25009&r=gnused[/url]