Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35003 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11176 invoked by uid 1010); 29 Jan 2008 17:32:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 11161 invoked from network); 29 Jan 2008 17:32:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jan 2008 17:32:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=cellog@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=cellog@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 38.99.98.18 as permitted sender) X-PHP-List-Original-Sender: cellog@php.net X-Host-Fingerprint: 38.99.98.18 beast.bluga.net Linux 2.6 Received: from [38.99.98.18] ([38.99.98.18:50342] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 13/96-55338-F036F974 for ; Tue, 29 Jan 2008 12:32:01 -0500 Received: from mail.bluga.net (localhost.localdomain [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id D53EAC0D58E; Tue, 29 Jan 2008 10:31:56 -0700 (MST) Received: from [129.93.148.92] (pcp077485pcs.unl.edu [129.93.148.92]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id EDAA9C0D532; Tue, 29 Jan 2008 10:31:55 -0700 (MST) Message-ID: <479F6309.9090402@php.net> Date: Tue, 29 Jan 2008 11:31:53 -0600 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Andi Gutmans CC: internals Mailing List , Steph Fox , Marcus Boerger References: <479E1152.50301@chiaraquartet.net> <698DE66518E7CA45812BD18E807866CE0133A231@us-ex1.zend.net> In-Reply-To: <698DE66518E7CA45812BD18E807866CE0133A231@us-ex1.zend.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: [PHP-DEV] re-proposal of pecl/phar for inclusion in core From: cellog@php.net (Greg Beaver) Andi Gutmans wrote: > Hey Greg, > > This looks very promising. Great to see that you took those feedbacks > and really attacked them leading to a huge improvement in phar (should I > say night and day :) I think you've really accomplished a lot in these > few months. > Are there any docs which describe the transparent front controller > configuration? I'd love to take a look and give it a spin. Hi, I replied to Andi earlier, forgot to hit Reply-All, so I'll send this again, but with a bit more detail. These two links describe the main things needed: http://docs.php.net/manual/en/phar.webphar.php http://docs.php.net/manual/en/phar.interceptfilefuncs.php Most apps would need both Phar::interceptFileFuncs() and Phar::webPhar(). For instance, to get phpMyAdmin working, I downloaded the tar.gz, and ran this script (it assumes you've got an insecure mysql with root having no password, so change that if you don't, and you should change the absolute paths to the right location): startBuffering(); $a["phpMyAdmin-2.11.3-english/config.inc.php"] = 'setStub('stopBuffering(); ?> After doing this, you can copy phpMyAdmin.phar.tar.php to any location in your document root and browse to it, and it should pop up the familiar app, barring some bug we haven't encountered yet :). Greg