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

2008-11-09 Thread Christian Schmidt
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

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

[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

Re: [PHP-DEV] Selectable error messages

2008-06-18 Thread Christian Schmidt
Lester Caine wrote: Short of switching display_errors on and off all the time, how do other people handle this irritation? I don't have experiences with E_DEPRECATED, but for E_STRICT we use a custom error handler to surpress strict errors in external libraries. Not all E_STRICT errors can be

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

2008-03-31 Thread Christian Schmidt
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

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

[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,

[PHP-DEV] Stream wrapper support in realpath()

2008-01-08 Thread Christian Schmidt
AFAICS realpath() currently only works with files and not other stream wrappers. Is there any chance that realpath() will support custom stream wrappers? I think it can be implemented in a BC way: If the wrapper class doesn't have a wrapper::realpath() method, realpath() just returns false lik

[PHP-DEV] CVS Account Request: schmidt

2007-01-23 Thread Christian Schmidt
I intend to work on the OLE package and help with the Spreadsheet_Excel_Writer package and the proposed Spreadsheet_Excel_Reader package. Arnaud Limbourg <[EMAIL PROTECTED]> wrote: >That would be great indeed. Do not hesitate to apply for a >pear-account and a cvs account if you don't have one. I