phar['blah.php']->isWritable() works now
| From: | Gregory Beaver | Date: | Thu, 10 Apr 2008 03:18:13 +0000 |
| Subject: | phar['blah.php']->isWritable() works now | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-36913@lists.php.net to get a copy of this message | ||
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