Re: note 79574 rejected and deleted from function.header by notes editor betz

From: Date: Tue, 04 Dec 2007 11:57:58 +0000
Subject: Re: note 79574 rejected and deleted from function.header by notes editor betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-132788@lists.php.net to get a copy of this message
this wasn't a support request, I solved the problem (or rather, found a workaround). it was a note left for future developers who come across the same issue. On Dec 4, 2007 12:56 PM, <php-notes@lists.php.net> wrote: > You are receiving this email because your note posted > to the online PHP manual has been removed by one of the editors. > > Read the following paragraphs carefully, because they contain > pointers to resources better suited for requesting support or > reporting bugs, none of which are to be included in manual notes > because there are mechanisms and groups in place to deal with > those issues. > > The user contributed notes are not an appropriate place to > ask questions, report bugs or suggest new features; please > use the resources listed on <http://php.net/support> > for those purposes. This was clearly stated in the page > you used to submit your note, please carefully re-read > those instructions before submitting future contributions. > > Bug submissions and feature requests should be entered at > <http://bugs.php.net/>. For documentation errors use the > bug system, and classify the bug as "Documentation problem". > Support and ways to find answers to your questions can be found > at <http://php.net/support>. > > Your note has been removed from the online manual. > > ----- Copy of your note below ----- > > 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! > -- The geek shall inherit the earth.

« previous php.notes (#132788) next »