--TEST-- Phar::chmod zip-based --SKIPIF-- --INI-- phar.readonly=0 phar.require_hash=0 --FILE-- '; $phar->setAlias('hio'); $phar->addEmptyDir('test'); $phar->stopBuffering(); try { var_dump($phar['a.php']->isExecutable()); $phar['a.php']->chmod(0777); copy($fname, $fname2); $phar->setAlias('unused'); $phar2 = new Phar($fname2); var_dump($phar2['a.php']->isExecutable()); $phar['a.php']->chmod(0666); var_dump($phar['a.php']->isExecutable()); echo "test dir\n"; var_dump($phar['test']->isDir()); var_dump($phar['test']->isReadable()); $phar['test']->chmod(0000); var_dump($phar['test']->isReadable()); $phar['test']->chmod(0666); var_dump($phar['test']->isReadable()); } catch (Exception $e) { echo $e->getMessage() . "\n"; } ?> --CLEAN-- --EXPECT-- bool(false) bool(true) bool(false) test dir bool(true) bool(true) bool(false) bool(true)