ID: 27289 User updated by: php at koteroff dot ru 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:
Thanks in advice. But why? Would PHP5 ever been compatible with PHP4 on the same apache or not? What the prospects? I am sure: if PHP5 would live with PHP4 on the same server, it will greatly improve its popularity. (I am working as system administrator of large hosting provider.) Previous Comments: ------------------------------------------------------------------------ [2004-02-17 11:39:18] schlueter at phpbar dot de 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. ------------------------------------------------------------------------ [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