Re: An outside-of PHP Phar creator?
On Sun, 2014-02-02 at 09:25 -0800, Sara Golemon wrote:
> On Sun, Feb 2, 2014 at 9:19 AM, Kevin Ingwersen
> <[email protected]> wrote:
> > I just wanted to ask: Is it possible, to create a Phar without
> having PHP installed - and furthermore, reading that phar?
> >
> It would take *some* tool which can parse the packaging format.
> Without PHP that means some purpose-built program in some other
> language which would then need to maintain parity with php/phar
> through various versions.
>
> To my knowledge, no such tool currently exists.
... and if somebody wants to do that (not that I can imagine a good
reason) my suggested approach would be linking against php embed sapi
and then using PHP stream API and phar's APIs to manipulate it instead
of rebuilding it .. of course that won't work with java (or did anybody
ever use PHP via JNI?) but then again: why would one? - use PHP ...
johannes
Thread (3 messages)