Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36660 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16712 invoked from network); 28 Mar 2008 18:12:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Mar 2008 18:12:24 -0000 Authentication-Results: pb1.pair.com header.from=steph@zend.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=steph@zend.com; spf=permerror; sender-id=softfail Received-SPF: error (pb1.pair.com: domain zend.com from 64.97.136.150 cause and error) X-PHP-List-Original-Sender: steph@zend.com X-Host-Fingerprint: 64.97.136.150 smtpout0150.sc1.he.tucows.com Solaris 8 (1) Received: from [64.97.136.150] ([64.97.136.150:54418] helo=n068.sc1.he.tucows.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 00/96-25926-5053DE74 for ; Fri, 28 Mar 2008 13:12:24 -0500 Received: from sc1-out09.emaildefenseservice.com (64.97.139.2) by n068.sc1.he.tucows.com (7.2.069.1) id 4769316E00FF6DCE; Fri, 28 Mar 2008 18:12:18 +0000 X-SpamScore: 2 X-Spamcatcher-Summary: 2,0,0,ebb4f28689ed98fd,b872967fd047b80d,steph@zend.com,-,RULES_HIT:355:379:481:539:540:541:542:543:567:599:601:945:946:973:988:989:1155:1156:1260:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1541:1587:1593:1594:1711:1730:1747:1766:1792:2073:2075:2078:2198:2199:2379:2393:2559:2562:2828:2901:3027:3354:3622:3865:3866:3867:3868:3869:3870:3871:3872:3873:3874:4699:5007:6261:7875:7903,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0, MSF:not bulk,SPF:,MSBL:none,DNSBL:none X-Spamcatcher-Explanation: Received: from foxbox (host86-130-56-54.range86-130.btcentralplus.com [86.130.56.54]) (Authenticated sender: steph.fox) by sc1-out09.emaildefenseservice.com (Postfix) with ESMTP; Fri, 28 Mar 2008 18:12:18 +0000 (UTC) Message-ID: <069801c890ff$607cf000$4001a8c0@foxbox> Reply-To: "Steph Fox" To: , "Elizabeth M Smith" References: <1206719555.6331.39.camel@localhost> <07.8D.25926.CD81DE74@pb1.pair.com> <1206723693.6331.48.camel@localhost> Date: Fri, 28 Mar 2008 18:13:06 -0000 Organization: Zend Technologies MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Subject: Re: [PHP-DEV] phar API From: steph@zend.com ("Steph Fox") Hi Elizabeth, >>> The only things I see missing are an addFile and addDirectory shortcut >>> methods for when I don't want to mess with all the metadata or creating >>> iterators. >> >> addDirectory() is called createDirectory() in my RFC, just ignore the >> return value. What would you like addFile() to do? Adding an empty file? >> >> cu, Lars > > Not add an empty directory - just add a directory and its contents much > like the Phar::create would do - an assumption that you want everything > in that directory inside with no iterators or magic required. Hmm.. and how would you tell the difference between: empty directory creation, adding an existing directory plus contents, and whether the action is recursive or not? I think this needs a bit more thought. > addFile(filename) would just add a file - no thinking required, although > if there was an addDirectory you wouldn't really need it. I think I'm probably missing something here... (haven't read the entire thread, can you tell?) addFile() in many cases would actually involve more typing than we do currently via array access...? > I'm just of the opinion that the less I have to write for common actions > the better. Yes, I'm with you on that part. The main problem is that I don't know if Greg would want me or Marcus to add functionality (even aliasing-type shortcuts) this week, while we're in alpha. I rather suspect he'd like to leave edge-smoothing for 2.1.0 and just get the thing out there and tested ASAP, otherwise I'd be implementing everything Greg implemented last weekend right now :-) We don't actually have missing functionality at this stage... everything mentioned here boils down to 'prettification'. So while it can definitely go down as 'wishlist' stuff, it's not actually essential. - Steph