--TEST-- Phar: test stat function interceptions and is_file/is_link edge cases (PHP 5.3+) --SKIPIF-- --INI-- phar.readonly=0 phar.require_hash=0 --FILE-- convertToExecutable(Phar::TAR, Phar::NONE, '.phar.tar'); unset($a); Phar::unlinkArchive($fname2); $b['foo/stat.php'] = ''; $b->addEmptyDir('foo/bar/blah'); $b->setStub(' ===DONE=== --CLEAN-- --EXPECTF-- bool(true) is_link bool(false) bool(true) bool(false) bool(false) bool(true) string(4) "link" string(3) "dir" bool(true) not found bool(false) dir bool(true) bool(false) ===DONE===