Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41787 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65012 invoked from network); 9 Nov 2008 21:49:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Nov 2008 21:49:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=thetaphi@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=thetaphi@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 80.190.230.99 as permitted sender) X-PHP-List-Original-Sender: thetaphi@php.net X-Host-Fingerprint: 80.190.230.99 www.troja.net Linux 2.5 (sometimes 2.4) (4) Received: from [80.190.230.99] ([80.190.230.99:39356] helo=mail.troja.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5F/C5-36888-00B57194 for ; Sun, 09 Nov 2008 16:49:54 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.troja.net (Postfix) with ESMTP id 481734CF15; Sun, 9 Nov 2008 22:49:50 +0100 (CET) Received: from mail.troja.net ([127.0.0.1]) by localhost (cyca.troja.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24707-05; Sun, 9 Nov 2008 22:49:48 +0100 (CET) Received: from VEGA (port-83-236-62-68.dynamic.qsc.de [83.236.62.68]) (using SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.troja.net (Postfix) with ESMTP id 4B83D4CEF5; Sun, 9 Nov 2008 22:49:48 +0100 (CET) To: "'Arnaud Le Blanc'" , Cc: "'Christian Schmidt'" References: <48FBA987.5030809@peytz.dk> <42FD82032C7D484CAC254FC5D6C292E1@pc> <49173133.4040104@peytz.dk> <200811092201.36508.lbarnaud@php.net> Date: Sun, 9 Nov 2008 22:49:47 +0100 Message-ID: <841365F95ED5461292599AE9813EA9FA@VEGA> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <200811092201.36508.lbarnaud@php.net> Thread-Index: AclCrnWCd+ErKIjdQjyP8OO+Tqd2xAABnibQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Subject: RE: [PHP-DEV] [PATCH] Allow unsetting headers previously set usingheader() From: thetaphi@php.net ("Uwe Schindler") +1 I have no problem with implementing this for NSAPI after the patch is committed to CVS, just keep me informed about this. ----- Uwe Schindler thetaphi@php.net - http://www.php.net NSAPI SAPI developer Bremen, Germany > -----Original Message----- > From: Arnaud LB [mailto:arnaud.lb@gmail.com] On Behalf Of Arnaud Le Blanc > Sent: Sunday, November 09, 2008 10:02 PM > To: internals@lists.php.net > Cc: Christian Schmidt > Subject: Re: [PHP-DEV] [PATCH] Allow unsetting headers previously set > usingheader() > > On Sunday 09 November 2008 19:51:31 Christian Schmidt wrote: > > Stan Vassilev | FM wrote: > > > I suggest header_remove('*') or simply header_remove() /no param/ > > > removes all headers (including the one PHP sets by default), so we can > > > start with a clear state. > > > > I added header_remove('Foo'). header_remove() without arguments removes > > all headers (though Apache still adds some headers that you cannot > remove). > > > > I have tested with apache2handler and cgi. I had to change the signature > > of SAPI header_handler function and sapi_header_struct, so the other > > SAPIs should be updated for this. I am not sure how to test all these? > > Creating a testing environment for all those webservers seems like a > > huge task. > > > > I am not comfortable with the size of this patch, given my understanding > > of the PHP source code and my general C skills, so I am posting this > > patch hoping that somebody will pick it up or help me get it into shape. > > > > It looks good. The signature change is not that bad if it forces all SAPIs > to > be updated and ensures that PHP behaves the same way with all SAPIs. > > It is also possible to add something like header_delete_handler() or > header_handler_ex() to sapi_module_struct if the signature change is to be > avoided. > > Regards, > > Arnaud > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php