Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41318 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71663 invoked from network); 22 Oct 2008 11:40:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Oct 2008 11:40:53 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 83.243.58.133 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 83.243.58.133 mailout1.netbeat.de Linux 2.6 Received: from [83.243.58.133] ([83.243.58.133:53768] helo=mailout1.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E0/32-57664-2411FF84 for ; Wed, 22 Oct 2008 07:40:52 -0400 Received: (qmail 11093 invoked by uid 89); 22 Oct 2008 11:44:17 -0000 Received: from unknown (HELO ?192.168.1.101?) (postmaster%schlueters.de@82.135.75.103) by mailout1.netbeat.de with ESMTPA; 22 Oct 2008 11:44:17 -0000 To: Hannes Magnusson Cc: Christian Schmidt , internals@lists.php.net In-Reply-To: <7f3ed2c30810200012pbdb0530u4561cb1848dab89f@mail.gmail.com> References: <48FBA987.5030809@peytz.dk> <7f3ed2c30810200012pbdb0530u4561cb1848dab89f@mail.gmail.com> Content-Type: text/plain Date: Wed, 22 Oct 2008 13:40:40 +0200 Message-ID: <1224675641.19390.61.camel@goldfinger.johannes.nop> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [PATCH] Allow unsetting headers previously set using header() From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) Hi, On Mon, 2008-10-20 at 09:12 +0200, Hannes Magnusson wrote: > > I suggest extending the behaviour of header() so that when the first > > argument does not contain a colon (and does not begin with "HTTP/"), e.g. > > header('Vary'), it unsets the header with the specified name. I decided to > > extend the existing header() function rather than adding a new function, > > because the existing function already supports multiple actions (add, append > > and replace). > > > That isn't very intuitive. I would think it was a typo when reading > such code and fix the header line... > I'd suggest explicit header_remove("Vary"); Agreed, a specific function with a clear name sounds better. Christian, can you update the patch? - thanks! johannes