followup: mod_negotiation and php
| From: | Stephen van Egmond | Date: | Sun, 02 Feb 2003 18:33:48 +0000 |
| Subject: | followup: mod_negotiation and php | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-93894@lists.php.net to get a copy of this message | ||
As a followup, I'd like to document what worked (for me) to address
the problem.
The issue, in summary, is that mod_negotiation thinks that
PHP produces content of type application/x-httpd-php. It usually
produces text/html of course, but there's no way for it to know that.
mod_negotiation has infrastructure to consider a few other mime
as "pseudo html" during the negotiation phase. Changing
INCLUDES_MAGIC_TYPE in apache:src/include/httpd.h to
application/x-httpd-php results in the behaviour you would hope for.
I haven't got the chops to try to turn this into an acceptable patch.
But the hack could work for others.