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