On Mon, 26 Jan 2004, Brian J. France wrote:

>> I have a project where I need to have both Apache SAPI (shared) and
>> embed SAPI (shared) compiled/active at the same time. Is that possible
>> to do at all? Any risk of symbol clashes or other similar problems?
>
>Andrei posted this a while ago, but nobody replied and we have learned 
>this is it not possible.
>
>With the current state of the code and configuration system what would 
>it take to do something like this:
>
>Core PHP code is built into libphpX.so (libphp4.so)
>
>All SAPI's require libphpX.so:
>
>libphpX_apache.so <- apache sapi
>libphpX_embeded.so <- apache sapi
>
>and the command line sapi would have a depenency on libphpX.so.

    Here's what I came up with:
 
      http://www.php.net/~jani/patches/multi_sapi_build.patch
   
    With the patch applied, I'm now able to build at least
    apache, cli, cgi and embed SAPIs on one run.
    
    # ./configure --disable-all --with-apxs --enable-embed
    
    (CLI and CGI are build by default..)
    
    I build them using static 'core' lib as I dislike the
    idea of having to install and maintain several libs. :)

    But if someone insists, it's possible to build one shared
    lib too..I actually tested with that first. :)
    
    --Jani
      

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

Reply via email to