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

From: Date: Thu, 23 Oct 2008 18:58:31 +0000
Subject: Re: [PATCH] Allow unsetting headers previously set using header()
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-41347@lists.php.net to get a copy of this message
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_NOW. The two latter appears not to be used at all. I don't understand the meaning of the SAPI_HEADER_ADD constant. I would assume that xxx_sapi_header_handler should just return a bool indicating whether the operation was successful or not? Can anybody explain this or refer to some documentation? Thanks. Christian

« previous php.internals (#41347) next »