[nycphp-talk] Embedded PHP
Chris Snyder
chsnyder at gmail.com
Wed Nov 9 10:32:11 EST 2011
On Wed, Nov 9, 2011 at 10:08 AM, Gary Mort <garyamort at gmail.com> wrote:
>
>
> Instead, I'm thinking of trying to do it from the other end - ie clone the
> source and then remove every directory and file not needed to compile, as
> well as removing more from the configuration script and makefile - with the
> first goal of being to have a CLI PHP compiled which just has a few
> functions[ideally, break it down to just some basic variable manipulation
> and the echo function], then add functions back in on a case by case basis
> as they are needed.
>
> Just curious if anyone here knows of an approach that starts at the
> minimal end and builds up, or even a subtractive approach that has resulted
> in a very small, limited functionality PHP interpreter?
>
>
Given that you're not talking about microscopic amounts of memory (pretty
sure my first PHP production server was 256MB) I'm not sure how hard you
should work on this.
Simply compiling PHP with most of the --without-xxx flags should get you a
relatively small binary, no? And very few shared library dependencies.
I'm only guessing, but that seems like an easy place to start.
Chris Snyder
http://chxor.chxo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20111109/58d45af7/attachment.html>
More information about the talk
mailing list