Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36701 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5709 invoked from network); 31 Mar 2008 08:14:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Mar 2008 08:14:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=chsc@peytz.dk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=chsc@peytz.dk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain peytz.dk from 80.160.174.174 cause and error) X-PHP-List-Original-Sender: chsc@peytz.dk X-Host-Fingerprint: 80.160.174.174 zimbra.peytz.dk Linux 2.5 (sometimes 2.4) (4) Received: from [80.160.174.174] ([80.160.174.174:34836] helo=zimbra.peytz.dk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 01/10-05022-D6D90F74 for ; Mon, 31 Mar 2008 03:14:38 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.peytz.dk (Postfix) with ESMTP id 6EB1E15827B; Mon, 31 Mar 2008 10:14:34 +0200 (CEST) X-Virus-Scanned: amavisd-new at X-Spam-Flag: NO X-Spam-Score: -4.247 X-Spam-Level: X-Spam-Status: No, score=-4.247 tagged_above=-10 required=5 tests=[ALL_TRUSTED=-1.8, AWL=0.152, BAYES_00=-2.599] Received: from zimbra.peytz.dk ([127.0.0.1]) by localhost (zimbra.peytz.dk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9Skk-N8lU+jL; Mon, 31 Mar 2008 10:14:33 +0200 (CEST) Received: from [192.168.10.188] (axa.peytz.dk [80.160.174.169]) by zimbra.peytz.dk (Postfix) with ESMTP id C47BC1581CE; Mon, 31 Mar 2008 10:14:33 +0200 (CEST) Message-ID: <47F09D68.2070309@peytz.dk> Date: Mon, 31 Mar 2008 10:14:32 +0200 Organization: Peytz & Co. User-Agent: Thunderbird 3.0a1pre (Windows/2008033002) MIME-Version: 1.0 To: "Edward Z. Yang" CC: internals@lists.php.net References: <47EC2065.2000002@peytz.dk> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] Allow unsetting headers previously set by header() From: chsc@peytz.dk (Christian Schmidt) Edward Z. Yang wrote: > If you need this kind of flexibility, I recommend you make an > HttpHeaders class which manages these things and then sends them when > necessary. Thanks, I'll consider that for now. However, it has the downside that I have to make an explicit function call in every PHP file in order to send the headers. My use case is a site with an auto_prepend_file that sets a header that is relevant for almost all .php files on the site except a few that unsets the header. So I hope people my patch for the PHP core will still be considered. I think the added functionality is in line with the existing functionality to replace and append to existing headers. Christian