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

2008-03-27 Thread Christian Schmidt
Richard Lynch wrote: At the risk of incurring the wrath of everybody else, I'd prefer to see a new function like header_unset (or unset_header) to "undo" a header. Currently header() supports adding, replacing and appending to existing headers as well as specifying the response status code, so I

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

2008-03-27 Thread Richard Lynch
On Thu, March 27, 2008 5:32 pm, Christian Schmidt wrote: > When a header has been set using header('Foo: bar') it can be replaced > with > other headers, but it cannot be removed. I like the idea of being able to "unset" headers. I'm not sure I like the idea of calling what looks lik an invalid h

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

2008-03-27 Thread Christian Schmidt
When a header has been set using header('Foo: bar') it can be replaced with other headers, but it cannot be removed. For instance, one could imagine that the auto_prepend_file calls header('Vary: Accept-Language') because most pages do language-negotiation. But if a single file generates, say,