On Thu, 13 Nov 2003, Cesare D'Amico wrote:

>Alle 19:42, giovedì 13 novembre 2003, Jani Taskinen ha scritto:
>> I made the necessary changes for that to be possible in the config
>> side..
>
>So you managed to run both php4 and php5 as DSO on the same instance of 
>the server? How did you do it? (it's really interesting, and it's a 
>pity that this doesn't work out of the box as it was in the php3/4 
>period)

    I thought I said "it crashed" ? (you didn't quote that part..:)
    And hopefully you also noticed that this was done within Linux,
    not windows. 
    
    The basic problem running php4/php5 "same time" is that both php4/php5
    use the same trigger for running the scripts on Apache. (application/x-httpd-php)
    
    So I just changed that in php5 sapi/apache/mod_php5.c to 
    php5-script..and also used the handler method instead, like this:
    
      AddType application/x-httpd-php .php4
      AddHandler php5-script .php5

    (I think it was Ken who said that this is actually how it should have been
    since the beginning..using the AddHandler, not AddType.. :)
    
    Now, it worked fine as long as only either libphp4.so or libphp5.so was 
    enabled. If both were enabled -> hangup/crash.
    
    I tried compiling both php4/5 with --enable-versioning, and also
    just the other but that didn't make any difference, it still hung/crashed.
    
    --Jani

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to