Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24828 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80858 invoked by uid 1010); 21 Jul 2006 12:00:57 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 80826 invoked from network); 21 Jul 2006 12:00:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jul 2006 12:00:57 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; domainkeys=good DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 66.249.92.172 ug-out-1314.google.com Linux 2.4/2.6 Received: from ([66.249.92.172:2739] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 70/79-29121-5F1C0C44 for ; Fri, 21 Jul 2006 08:00:54 -0400 Received: by ug-out-1314.google.com with SMTP id k3so1366692ugf for ; Fri, 21 Jul 2006 05:00:29 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PHAAxaJ2vtt7rFGWk5LKcyJ1Bmx+cegDZVhfyQjUDdKI4VWp1XbT3jfDqm3WdWWYXltRQrmh6yjd39RiDgyDh06DBbOi6zrvD8/U0qjk4s6QBzJWKdzzkFoRlaZaHbcBsCzfSZr+4B/NEsAOOhIO7OO/eHvJy8FoMlSOrbjZkwc= Received: by 10.66.219.11 with SMTP id r11mr604576ugg; Fri, 21 Jul 2006 05:00:29 -0700 (PDT) Received: by 10.66.220.11 with HTTP; Fri, 21 Jul 2006 05:00:27 -0700 (PDT) Message-ID: Date: Fri, 21 Jul 2006 14:00:27 +0200 To: "Ron Korving" Cc: internals@lists.php.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; 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: pierre.php@gmail.com (Pierre) 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