Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68318 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13809 invoked from network); 26 Jul 2013 10:56:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jul 2013 10:56:18 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.49 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.219.49 mail-oa0-f49.google.com Received: from [209.85.219.49] ([209.85.219.49:44562] helo=mail-oa0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EB/14-25917-0D552F15 for ; Fri, 26 Jul 2013 06:56:16 -0400 Received: by mail-oa0-f49.google.com with SMTP id n12so7024734oag.22 for ; Fri, 26 Jul 2013 03:56:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=kb3EmY+e/in07UqBgJPn+DKzWveTr9rBUOrENHXs3+Y=; b=hBQJxQRHK/3kq0KDS6oy3xn9Zos/kpQsaLXlMPrxJYdDjrdnZON2C+EeIvSPP9CKCw c2klwQD9KV5Hm4aevrQse5M/tuLglTbEMN82hVxu30TVaFKWiYVCOWCc6NnEScKt7sDE X5jg4Ia2fIqd9QQY8MZCzPGSyuUvp7jf7cSwyP4ppdYodk4OXXH9eltyQH9EYuhEV3qh ipM33F3VDA/EAlxgAtA5SXFiZtjmE3f0RA2bSpsESGyfYNosbkf1RO3nIMnmbAsoARaj z1J+CX3k5ROG0AYgTxjZ9gJ3nkiAKr6cLsNBY3rQv983iSg6yRSq06EqukCxqyAgzo1L eG1w== MIME-Version: 1.0 X-Received: by 10.50.50.244 with SMTP id f20mr987960igo.21.1374836173281; Fri, 26 Jul 2013 03:56:13 -0700 (PDT) Received: by 10.50.65.8 with HTTP; Fri, 26 Jul 2013 03:56:13 -0700 (PDT) In-Reply-To: References: Date: Fri, 26 Jul 2013 12:56:13 +0200 Message-ID: To: crankypuss Cc: PHP Internals Content-Type: multipart/alternative; boundary=047d7bd6be12bb9f9904e267fda7 Subject: Re: [PHP-DEV] execute compressed PHP command-line application From: tyra3l@gmail.com (Ferenc Kovacs) --047d7bd6be12bb9f9904e267fda7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > check out http://us1.php.net/phar and >>> >> http://www.php.net/manual/en/**wrappers.phar.php >> currently this is the preferred method >> > > Preferred by whom, thank you very much? Who is it that has set > himself/itself up as The Authority on this subject? the pear installer is shipped as a phar file, phpunit also provides phar releases, composer also provided as a phar file, phpdocumentor also available as a phar file, etc. I only talking about my personal experience, but it seems to me that currently phar is the preferred method for shipping single file php applications out there. > > > for shipping an application in a >> single file, as it is allows you to work those files and directories in >> the >> phar via most php functions as those would be normal files/directories o= n >> the disk so stuff like __LINE__ would point a valid path. >> > > The objective is not to perpetuate the idiocy of includes but to obviate > it. I fail to see how includes are an idiocy in general, similarly there is no clear winner in the dynamic linking vs static linking, but depends on your usecase. From your primary comment I missed that your main reason for bundling everything into one file was for portability, depending on your userbase I would say that some dependency management tool (composer comes to mind) would serve that goal better, see: http://www.phptherightway.com/#dependency_management --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --047d7bd6be12bb9f9904e267fda7--