# phar['blah.php']->isWritable() works now

- Thread: https://externals.io/message/36913
- Original archive: https://news-web.php.net/php.internals/36913
- Started by Gregory Beaver on 2008-04-10T03:18:13+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #36913 — Gregory Beaver — 2008-04-10T03:18:13+00:00

URL: https://externals.io/message/36913#36913

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
