Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24831 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87342 invoked by uid 1010); 21 Jul 2006 12:13:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 87327 invoked from network); 21 Jul 2006 12:13:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jul 2006 12:13:22 -0000 Authentication-Results: pb1.pair.com header.from=rquadling@googlemail.com; domainkeys=good DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@googlemail.com X-Host-Fingerprint: 64.233.166.181 py-out-1112.google.com Linux 2.4/2.6 Received: from ([64.233.166.181:29658] helo=py-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id FB/6A-29121-0E4C0C44 for ; Fri, 21 Jul 2006 08:13:22 -0400 Received: by py-out-1112.google.com with SMTP id x31so125326pye for ; Fri, 21 Jul 2006 05:13:18 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KRwGTS4Z1/GfiS4jqVE5Bi5plEjmXu3I+4rttKBaBFbAv4gYBhhOO0cv7qmq8ajEA70VgaOxep5LgiHCcaeCz5pDVM7EtEZXtmDokBIMhK/DlKDs0fZRdq5CmHPsYFha3/RGz7YenuudZO//+IkQ0zIQF253koiXBs8mXFketmU= Received: by 10.35.26.14 with SMTP id d14mr1126360pyj; Fri, 21 Jul 2006 05:13:18 -0700 (PDT) Received: by 10.35.93.18 with HTTP; Fri, 21 Jul 2006 05:13:18 -0700 (PDT) Message-ID: <10845a340607210513md187341saa68f2844489a6a8@mail.gmail.com> Date: Fri, 21 Jul 2006 13:13:18 +0100 Reply-To: RQuadling@GoogleMail.com To: internals@lists.php.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060719173451.114d4528@pierre-u64> <20060721112422.JLUB11710.aamtaout03-winn.ispmail.ntl.com@win2ks> Subject: Re: [PHP-DEV] Adding pecl/zip to 5.2 From: rquadling@googlemail.com ("Richard Quadling") A compression wrapper like PDO would be great. And they do all do the same things more or less. Take data and compress it. Take compressed data and uncompress it. Not that different. On 21/07/06, Pierre wrote: > Hello, > > On 7/21/06, Ron Korving wrote: > > I was thinking the same thing. We can of course clutter the namespace with a > > class for every possible file extension we want to develop an API for, but > > maybe we can do the smart thing and do what PDO does for databases: present > > a unified API. > > I was thinking the same as well. But I don't think it is a good idea. > For the simple operations, you can do it easily in php. I don't think > there is a need for an internal implementation of such wrappers. > > > I don't like the idea of having GZip, Zip, Rar, Arj, Etc classes when they > > all do the same. > > They don't always do the same, that's the problem. Also I'm a fan of > one need/one tool. PDO was needed because it is really a mess in the > DB APIs. I would prefer to define some common API and have independent > extensions. It will let us implement all format specific features or > needs (which can be speed, compression level, etc.). > > Cheers, > --Pierre > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"