You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rodent of Unusual Size <Ke...@Golux.Com> on 1999/07/04 20:53:59 UTC
Re: testing modules, setting headers and PHP
Rasmus Lerdorf wrote:
>
> I think the problem is that mod_php is called during the 'handlers'
> phase and because it generates actual content it forces out the
> headers. If you were to pick a request phase that occurs prior to
> mod_php being called and inject your headers into the headers table,
> then they will be there when mod_php eventually calls
> ap_http_send_header().
Actually, the fixup phase runs before the content-delivery phase,
so this doesn't seem a likely cause. Your (Ian's) hook will have
run before PHP's content hook does.
One possibility is that the document is being handled under
error conditions; r->headers_out is ignored in that case, and
only r->err_headers_out is retained. Ian, try putting your
response fields into the r->err_headers_out table instead and
see what happens.
--
#ken P-)}
Ken Coar <http://Web.Golux.Com/coar/>
Apache Software Foundation <http://www.apache.org/>
"Apache Server for Dummies" <http://Web.Golux.Com/coar/ASFD/>