Re: Interest in a "null" SAPI for embedding?
Right, gotcha. I think ideally someone should put in the grunt work to do
what you suggested: Build libphp5.so all the time, then link up php/
mod_php5.so/etc... against that as a shared system library (which in turn
other programs or SAPIs could link against).
I'm not sure if anyone has the time and patience to do that (for its
relatively small return), but it'd get my vote.
If nothing else, nice poetry selections.
-Sara
On Fri, Aug 16, 2013 at 5:14 PM, J David <[email protected]> wrote:
> To try it out, here's a hacky little Makefile you can use to build the
> CLI SAPI against the null shlib:
>
> http://pastebin.com/3FxWhZn4
>
> Resulting in:
>
> $ ls -l phpn
> -rwxrwxr-x 1 me staff 113669 Aug 17 00:13 phpn
> $ ldd phpn
> phpn:
> libphp5.so => /usr/local/php/5.6-dev/lib/libphp5.so (0x28080000)
> libc.so.7 => /lib/libc.so.7 (0x28487000)
> libcrypt.so.5 => /lib/libcrypt.so.5 (0x285ab000)
> libpcre.so.3 => /usr/local/lib/libpcre.so.3 (0x285ce000)
> librt.so.1 => /usr/lib/librt.so.1 (0x28633000)
> libm.so.5 => /lib/libm.so.5 (0x28639000)
> libthr.so.3 => /lib/libthr.so.3 (0x28653000)
> libz.so.6 => /lib/libz.so.6 (0x28673000)
> libssl.so.8 => /usr/local/lib/libssl.so.8 (0x28687000)
> libcrypto.so.8 => /usr/local/lib/libcrypto.so.8 (0x286e1000)
> libxml2.so.5 => /usr/local/lib/libxml2.so.5 (0x2885e000)
> libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x2898c000)
> liblzma.so.5 => /usr/lib/liblzma.so.5 (0x28a84000)
> $ ./phpn -v
> PHP 5.6.0-dev (cli) (built: Aug 17 2013 00:06:53)
> Copyright (c) 1997-2013 The PHP Group
> Zend Engine v2.6.0-dev, Copyright (c) 1998-2013 Zend Technologies
>
> Thanks!
>
Thread (15 messages)