Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34977 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7694 invoked by uid 1010); 28 Jan 2008 19:21:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 7677 invoked from network); 28 Jan 2008 19:21:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jan 2008 19:21:29 -0000 Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 38.99.98.18 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 38.99.98.18 beast.bluga.net Linux 2.6 Received: from [38.99.98.18] ([38.99.98.18:51305] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 43/3F-25507-83B2E974 for ; Mon, 28 Jan 2008 14:21:28 -0500 Received: from mail.bluga.net (localhost.localdomain [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id A6089C0E1C7; Mon, 28 Jan 2008 12:21:25 -0700 (MST) Received: from [192.168.0.106] (CPE-76-84-14-241.neb.res.rr.com [76.84.14.241]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id 1BC0CC0E1BB; Mon, 28 Jan 2008 12:21:24 -0700 (MST) Message-ID: <479E2B42.7090902@chiaraquartet.net> Date: Mon, 28 Jan 2008 13:21:38 -0600 User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: Stanislav Malyshev CC: internals Mailing List References: <479E1152.50301@chiaraquartet.net> <479E2455.4040508@zend.com> In-Reply-To: <479E2455.4040508@zend.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: [PHP-DEV] re-proposal of pecl/phar for inclusion in core From: greg@chiaraquartet.net (Gregory Beaver) Stanislav Malyshev wrote: >> Current status of phar addresses most of these criticisms: > > Looks impressive, great work! > >> phar implements zip support with native PHP code, enabling some features > > I am a bit confused about native PHP code here - we are talking baout > an extension, right? So what exactly is meant here? > Also, as I understand, there are features that ext/zip missed and phar > extension needs. Any reason not to add them to ext/zip? Hi Stas, Sorry, just a confusion of language on my part. ext/zip relies on libzip, an external lib that uses malloc/open and zlib directly. pecl/phar has built-in zip support based on php internals, it uses emalloc/streams which is what allows zlib/bz2 to be optional deps. Pierre and I are talking about merging efforts, which would benefit everyone. "libifying" the zip support in pecl/phar would be a relatively simple task, although some of the features are phar-specific, such as opendir() support. ext/zip would need to copy the generic opendir() stuff we use to get that (it scans all files to figure out which ones are in a directory, which is O(n) but works). zip support is only a small part of phar's features, merging all of phar's features into ext/zip would not make any sense and would confuse folks tremendously, such as being able to create tar archives with ext/zip :). Hopefully, the question of how the zip support will eventually end up looking (inside phar, phar/zip merge, new php zip lib) is kind of a non-issue. I'm very confident Pierre, Marcus, Steph and I will be able to work out the best solution for both ext/zip and pecl/phar, the main question at this point is bundling phar. Greg