Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72012 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15865 invoked from network); 2 Feb 2014 19:18:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Feb 2014 19:18:18 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.215.10 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.215.10 mail.experimentalworks.net Received: from [217.114.215.10] ([217.114.215.10:56746] helo=mail.experimentalworks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 11/C1-30967-9F99EE25 for ; Sun, 02 Feb 2014 14:18:17 -0500 Received: from [192.168.2.31] (ppp-93-104-16-38.dynamic.mnet-online.de [93.104.16.38]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: johannes@schlueters.de) by mail.experimentalworks.net (Postfix) with ESMTPSA id 029F3462F5; Sun, 2 Feb 2014 20:18:51 +0100 (CET) To: Sara Golemon Cc: Kevin Ingwersen , internals In-Reply-To: References: <1D451400-10CA-4FCA-829C-61F44ACEEBC3@googlemail.com> Content-Type: text/plain; charset="UTF-8" Date: Sun, 02 Feb 2014 20:18:13 +0100 Message-ID: <1391368693.4462.12.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] An outside-of PHP Phar creator? From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Sun, 2014-02-02 at 09:25 -0800, Sara Golemon wrote: > On Sun, Feb 2, 2014 at 9:19 AM, Kevin Ingwersen > 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