|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-01-09 23:27 UTC] requinix@php.net
-Status: Open
+Status: Feedback
[2016-01-09 23:27 UTC] requinix@php.net
[2016-01-09 23:38 UTC] domains dot 30430573 at gmail dot com
-Status: Feedback
+Status: Open
[2016-01-09 23:38 UTC] domains dot 30430573 at gmail dot com
[2016-01-09 23:41 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2016-01-09 23:41 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 14:00:01 2025 UTC |
Description: ------------ output before header() should give error, but no warning is shown and the header is actually sent (HTTP 403, in this case) *NOTE* I am testing this with PHP 7.0.1 via XAMPP Test script: --------------- <?php echo 'Some string'; header('HTTP/1.1 403 Forbidden'); Expected result: ---------------- PHP Warning: Cannot modify header information - headers already sent by (output started at Z:\test\file.php:2) in Z:\test\file.php on line 3 Actual result: -------------- HTTP 1.1 403 Forbidden ------------------------ Some string