Hey there.
I just wanted to ask: Is it possible, to create a Phar without having PHP installed - and furthermore, reading that phar?
Kind regards,
Ingwie
On Sun, Feb 2, 2014 at 9:19 AM, Kevin Ingwersen
ingwie2000@googlemail.com 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.
-Sara
On Sun, Feb 2, 2014 at 9:19 AM, Kevin Ingwersen
ingwie2000@googlemail.com 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