Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24824 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72198 invoked by uid 1010); 21 Jul 2006 11:38:42 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 72183 invoked from network); 21 Jul 2006 11:38:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jul 2006 11:38:42 -0000 X-Host-Fingerprint: 195.225.34.5 fw01.axit.nl Received: from ([195.225.34.5:17026] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id FA/28-29121-2CCB0C44 for ; Fri, 21 Jul 2006 07:38:42 -0400 Message-ID: To: internals@lists.php.net References: <20060719173451.114d4528@pierre-u64> <20060721112422.JLUB11710.aamtaout03-winn.ispmail.ntl.com@win2ks> Date: Fri, 21 Jul 2006 13:38:05 +0200 Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Original X-Posted-By: 195.225.34.5 Subject: Re: [PHP-DEV] Adding pecl/zip to 5.2 From: r.korving@xit.nl ("Ron Korving") 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 don't like the idea of having GZip, Zip, Rar, Arj, Etc classes when they all do the same. In the end people will start realizing the PDO-road should've been taken from day one. I wish I had any experience with PECL to work something out right now, but I don't. If anyone's interested, I'd be willing to invest some time in constructing an API though (as a sort of first step in a proof of concept). - Ron ""Jared Williams"" schreef in bericht news:20060721112422.JLUB11710.aamtaout03-winn.ispmail.ntl.com@win2ks... > >> Many people (incl. php devs) asked me if I can include zip in 5.2.0. >> Ilia thought it was too late in the game and planed to do it in 5.2.1. >> >> I like to have it in, as experimental. >> >> Please note that it intoduces a new class called Zip, but I >> never saw a >> php zip implementation named Zip. >> >> +1/-1/0? > > I would've preferred an unified package for handling multiple archives > (zip/rar/tgz etc). > Similar to what PDO does for databases, if it is going into core. > > Jared