Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36914 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5870 invoked from network); 10 Apr 2008 03:35:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Apr 2008 03:35:43 -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:32930] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 65/27-61052-E0B8DF74 for ; Wed, 09 Apr 2008 23:35:43 -0400 Received: from mail.bluga.net (localhost.localdomain [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id C56C9C100C6 for ; Wed, 9 Apr 2008 20:35:41 -0700 (MST) Received: from [192.168.0.106] (CPE-76-84-4-101.neb.res.rr.com [76.84.4.101]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id 8B238C100C5 for ; Wed, 9 Apr 2008 20:35:41 -0700 (MST) Message-ID: <47FD8B12.7090003@chiaraquartet.net> Date: Wed, 09 Apr 2008 22:35:46 -0500 User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: internals Mailing List 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: $phar->isWritable() works now too From: greg@chiaraquartet.net (Gregory Beaver) Hi, I re-read the messages, and realized I had misunderstood what was being requested, although it did pay off in finding a subtle bug in is_writeable() for files within a phar. I just implemented Phar->isWritable(), which can be used to detect the right combination of file permissions, archive type, and phar.readonly for creating archives. Thus, this can be used: isWritable()) { // add files or other modifications } ?> This should satisfy Elizabeth's wishlist, so to satisfy Lars and Benjamin, we need to clean up the conversion/compression API. Greg