--TEST-- Phar: PharFileInfo::chmod extra code coverage --SKIPIF-- --INI-- phar.readonly=0 --FILE-- chmod(066); } catch (Exception $e) { echo $e->getMessage(), "\n"; } $b->chmod(array()); lstat($pname . '/a/b'); // sets BG(CurrentLStatFile) $b->chmod(0666); ?> ===DONE=== --CLEAN-- --EXPECTF-- Phar entry "a" is a temporary directory (not an actual entry in the archive), cannot chmod Warning: PharFileInfo::chmod() expects parameter 1 to be int, array given in %spharfileinfo_chmod.php on line %d ===DONE===