From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.3.2 PHP Bug Type: Apache2 related Bug description: header() call doesn't replace 404 status code
Description: ------------ Using Apache 2.0.46 and PHP 4.3.2 compiled with --with-apxs2 When a PHP page is used as an ErrorDocument page, calling any variation of header() to replace the status code doesn't work. The client always receive 404. For example, try downloading from se.php.net: http://se.php.net/get/php-4.3.2.tar.gz/from/this/mirror You'll se that a Location header has been added (by the call to header() in /include/do-download.inc) but the status returned is still 404, not 302 as expected. -- Edit bug report at http://bugs.php.net/?id=24177&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24177&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24177&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24177&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24177&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24177&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24177&r=support Expected behavior: http://bugs.php.net/fix.php?id=24177&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24177&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24177&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24177&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24177&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24177&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24177&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24177&r=gnused