--TEST-- Bug #45860 (header() function fails to correctly replace all Status lines) --SKIPIF-- --FILE-- '); echo shell_exec("$php -n $f"); file_put_contents($f, ''); echo shell_exec("$php -n $f"); file_put_contents($f, ''); echo shell_exec("$php -n $f"); echo "Done\n"; @unlink($f); ?> --EXPECTF-- Status: 403 Forbidden X-Powered-By: PHP/%s Content-type: text/html; charset=UTF-8 Status: 403 Forbidden X-Powered-By: PHP/%s Content-type: text/html; charset=UTF-8 X-Powered-By: PHP/%s Status: 403 Also Forbidden Content-type: text/html; charset=UTF-8 Done