httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodent of Unusual Size <Ken.C...@Golux.Com>
Subject Re: testing modules, setting headers and PHP
Date Sun, 04 Jul 1999 18:53:59 GMT
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  <>
"Apache Server for Dummies" <http://Web.Golux.Com/coar/ASFD/>

View raw message