php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #27289 Change application/x-httpd-php in php5
Submitted: 2004-02-17 11:09 UTC Modified: 2008-01-01 16:11 UTC
Votes:21
Avg. Score:3.9 ± 0.9
Reproduced:4 of 11 (36.4%)
Same Version:4 (100.0%)
Same OS:3 (75.0%)
From: php at koteroff dot ru Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 5.0.0b4 (beta4) OS: all
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at koteroff dot ru
New email:
PHP Version: OS:

 

 [2004-02-17 11:09 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-02-17 11:39 UTC] 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:45 UTC] php at koteroff dot ru
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.)
 [2008-01-01 16:11 UTC] magnus@php.net
Using both 5 and 4 as modules on the same server doesn't work, use 
FastCGI/CGI for one of them.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 05 12:01:34 2025 UTC