--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-- Warning: is_file() expects exactly 1 parameter, 0 given in %sstat2_5.3.php on line %d Warning: is_link() expects exactly 1 parameter, 0 given in %sstat2_5.3.php on line %d 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===