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