#27289 [Com]: Change application/x-httpd-php in php5
| From: | schlueter at phpbar dot de | Date: | Tue, 17 Feb 2004 16:39:19 +0000 |
| Subject: | #27289 [Com]: Change application/x-httpd-php in php5 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-55076@lists.php.net to get a copy of this message | ||
ID: 27289
Comment by: schlueter at phpbar dot de
Reported By: php at koteroff dot ru
Status: Open
Bug Type: Feature/Change Request
Operating System: all
PHP Version: 5.0.0b4 (beta4)
New Comment:
Changing the mime-type can be done in the mod_php5.c at
line 910 (for Apache 1.3, for Apache 2 it shouldn't be a
big difference)
http://lxr.php.net/source/php-src/sapi/apache/mod_php5.c#910
But even if you change this you still can't make both
versions work on the same Apache - the only sollution ist
to run different insances of Apache on different ports
(that's what I do) or run at least one as CGI.
Previous Comments:
------------------------------------------------------------------------
[2004-02-17 11:09:35] php at koteroff dot ru
Description:
------------
Both PHP4 and PHP5 uses the same MIME types:
application/x-httpd-php
It makes impossible to use PHP4 and PHP5 as apache modules on the same
server.
Can you change it to application/x-httpd-php5 in new PHP version? I'd
like to say that PHP3 and PHP4 lives together on the same server
without any problem, because they have different MIME types.
I also know that on Windows we can open PHP dll in any binary editor
and manually correct MIME. Then we may use php4 and php5 together. I
have not tried this technique on Unix. Any problem with compatibility
with php4? Please answer something.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27289&edit=1