Re: Interest in a "null" SAPI for embedding?
| From: | Johannes Schlüter | Date: | Fri, 16 Aug 2013 16:55:44 +0000 |
| Subject: | Re: Interest in a "null" SAPI for embedding? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-68552@lists.php.net to get a copy of this message | ||
On Fri, 2013-08-16 at 12:36 -0400, J David wrote:
> Our solution was to develop a new pseudo-SAPI we call the null SAPI.
> All it does is build a complete libphp5.so with no SAPI-related
> structures or functions in it at all. Then we can build our real
> embedded SAPI -- with all its extra dependencies and goofy custom I/O
> handling -- outside the PHP tree and just link to the shared library,
> rather than entangling our app's source tree and the PHP source tree.
I was successful by using embedded SAPI for that and ignoring all things
from php_embed.[ch]. Sure this gives few extra symbols and a few bytes
of unneeded code but works fine.
johannes