note 79574 added to function.header
| From: | luka at kladaric dot net | Date: | Tue, 04 Dec 2007 09:04:10 +0000 |
| Subject: | note 79574 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-132782@lists.php.net to get a copy of this message | ||
experienced weird issue
on Apache/2.0.54
with mod_rewrite on
running PHP 5.2.2
<?php
// doing this:
header("HTTP/1.1 200 OK", true);
header("Status: 200 OK", true);
// and then
header("Location: /",true);
// a bit later
?>
causes 500 Internal server error
error_log says "[Mon Dec 03 02:39:58 2007] [error] [client xxx.xxx.xxx.xxx] Request exceeded
the limit of 10 internal redirects due to probable configuration error. Use
'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel
debug' to get a backtrace."
problem gone if first two lines commented out or replaced with <?php header(' ', true,
200);?>
if anyone can tell me exactly why this causes a meltdown in apache, please email me. thanks!
----
Server IP: 193.198.184.18
Probable Submitter: 89.164.210.86
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit -- https://master.php.net/note/edit/79574
Del: integrated -- https://master.php.net/note/delete/79574/integrated
Del: useless -- https://master.php.net/note/delete/79574/useless
Del: bad code -- https://master.php.net/note/delete/79574/bad+code
Del: spam -- https://master.php.net/note/delete/79574/spam
Del: non-english -- https://master.php.net/note/delete/79574/non-english
Del: in docs -- https://master.php.net/note/delete/79574/in+docs
Del: other reasons-- https://master.php.net/note/delete/79574
Reject -- https://master.php.net/note/reject/79574
Search -- https://master.php.net/manage/user-notes.php