Re: [PHP-DEV] [PATCH] Allow unsetting headers previously set using header()

2008-10-23 Thread Christian Schmidt
Johannes Schlüter wrote: Christian, can you update the patch? - thanks! I'll give it a try. But I need some help understanding the code. I don't understand the purpose of the #define constants SAPI_HEADER_ADD (not the enum value with the same name), SAPI_HEADER_DELETE_ALL and SAPI_HEADER_SEND

Re: [PHP-DEV] [PATCH] Allow unsetting headers previously set using header()

2008-10-22 Thread Johannes Schlüter
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 > > e

Re: [PHP-DEV] [PATCH] Allow unsetting headers previously set using header()

2008-10-20 Thread Hannes Magnusson
On Sun, Oct 19, 2008 at 23:41, Christian Schmidt <[EMAIL PROTECTED]> wrote: > When a header has been set using header('Foo: bar') it can be replaced with > another value, but it cannot be removed. Hah! Hit that one last Friday too, gosh that was annoying! > I suggest extending the behaviour of he

[PHP-DEV] [PATCH] Allow unsetting headers previously set using header()

2008-10-19 Thread Christian Schmidt
(This is a repost of a proposal originally sent to the list 6 months ago. It didn't gather much attention back then, but I talked to several people off-list who found it useful and suggested that I should try to bring it up again at a later date - so here goes) When a header has been set using