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

From: Date: Mon, 31 Mar 2008 08:14:32 +0000
Subject: Re: [PATCH] Allow unsetting headers previously set by header()
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-36701@lists.php.net to get a copy of this message
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

« previous php.internals (#36701) next »