Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36913 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3099 invoked from network); 10 Apr 2008 03:18:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Apr 2008 03:18:11 -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:36079] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DC/86-61052-1F68DF74 for ; Wed, 09 Apr 2008 23:18:10 -0400 Received: from mail.bluga.net (localhost.localdomain [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id DFD0992DEC0 for ; Wed, 9 Apr 2008 20:18:08 -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 9E96991E0DB for ; Wed, 9 Apr 2008 20:18:08 -0700 (MST) Message-ID: <47FD86F5.3020000@chiaraquartet.net> Date: Wed, 09 Apr 2008 22:18:13 -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['blah.php']->isWritable() works now From: greg@chiaraquartet.net (Gregory Beaver) Hi, There were some rumblings about wanting a way to detect whether a specific file/archive was writeable. I made some small changes to the way we detect this when the ini setting is changed, and added a test. Now the existing isWritable() from SplFileInfo always works properly for Phar. In addition, is_writeable/is_writable work, as does stat and related functions, all of which were actually broken should one ini_set() phar.readonly to another value. http://news.php.net/php.pecl.cvs/10330 One step closer to satisfying the API grumblings :). We need some assistance from Mac OS X experts, changes are needed to make it compile on Tiger (and, apparently, on some Leopard systems that upgraded from Tiger). Thanks, Greg