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