Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38918 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14857 invoked from network); 12 Jul 2008 17:22:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jul 2008 17:22:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=scott@macvicar.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=scott@macvicar.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain macvicar.net from 193.227.246.108 cause and error) X-PHP-List-Original-Sender: scott@macvicar.net X-Host-Fingerprint: 193.227.246.108 ip246-108-v193.static.x-ip.net Received: from [193.227.246.108] ([193.227.246.108:47881] helo=lovelace.midden.org.uk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CE/22-03784-358E8784 for ; Sat, 12 Jul 2008 13:22:29 -0400 Received: from cpe-74-73-190-24.nyc.res.rr.com ([74.73.190.24] helo=[192.168.1.106]) by lovelace.midden.org.uk with esmtpsa (TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1KHiqV-0000wo-Mn; Sat, 12 Jul 2008 18:25:24 +0100 Cc: php internals Message-ID: To: Jochem Maas In-Reply-To: <4878DD9D.2030409@iamjochem.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Date: Sat, 12 Jul 2008 13:21:15 -0400 References: <4878DD9D.2030409@iamjochem.com> X-Mailer: Apple Mail (2.926) X-Spam-Score: -4.4 X-Spam_Report: Spam detection software, running on the system "lovelace.midden.org.uk", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 12 Jul 2008, at 12:36, Jochem Maas wrote: > to Greg and his cohorts a hearty bravo! > > Phar is a really great addition, I'm very impressed with > the finesse of the initial implementation ... it's quite > rare to see [imho] a new feature appear in such a mature > and well thought out manner, good work 'smith. :) > > I have a few questions, some of the answers may deserve > a few lines in the docs. > > 1. to what extent is Phar capable/designed to handle self > updating Phars .. especially with regard to multi-user access > (I'm thinking in terms of a website+CMS+userdata in a Phar > updated by a few people 'concurrently') > > 2. is there a (quick) way to reference a Phar object of > the current (as in Phar::isRunning()) Phar file - I figure > the engine can do new Phar(Phar::isRunning()) faster/better, no? > > 3. are there technical reasons for not being able to create/access > an sqllite db inside a Phar? I have plans to add support to the various SQLite extensions to some extent, I've yet to see how much is possible. [...] Content analysis details: (-4.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Subject: Re: [PHP-DEV] Phar ... brilliant, a couple of questions? From: scott@macvicar.net (Scott MacVicar) On 12 Jul 2008, at 12:36, Jochem Maas wrote: > to Greg and his cohorts a hearty bravo! > > Phar is a really great addition, I'm very impressed with > the finesse of the initial implementation ... it's quite > rare to see [imho] a new feature appear in such a mature > and well thought out manner, good work 'smith. :) > > I have a few questions, some of the answers may deserve > a few lines in the docs. > > 1. to what extent is Phar capable/designed to handle self > updating Phars .. especially with regard to multi-user access > (I'm thinking in terms of a website+CMS+userdata in a Phar > updated by a few people 'concurrently') > > 2. is there a (quick) way to reference a Phar object of > the current (as in Phar::isRunning()) Phar file - I figure > the engine can do new Phar(Phar::isRunning()) faster/better, no? > > 3. are there technical reasons for not being able to create/access > an sqllite db inside a Phar? I have plans to add support to the various SQLite extensions to some extent, I've yet to see how much is possible. If creating a VFS driver for sqlite is simple then they'll be full read / write support else it will be mounting and read only. > > > 4. Am I crazy to think of building a dynamic website, cms, including > all user [uploaded] files, installation config .. complete with > command line interface for updates, upgrades, module/config > management, etc, etc ... all in one Phar? is that feasable? > what kind of read and/or write concurrency could one expect? > if building self updating Phars is okay, then maybe an example > in the manual could be done to emphasis a few do's, dont's, > limitations, etc. > > kind regards, > Jochem > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > Scott