--TEST-- Phar: test stat function interceptions and is_file/is_link edge cases (PHP 5.2) --SKIPIF-- --INI-- phar.readonly=0 phar.require_hash=0 --FILE-- convertToExecutable(); unset($a); Phar::unlinkArchive($fname2); $b['foo/stat.php'] = ''; $b->addEmptyDir('foo/bar/blah'); $b->setStub(' ===DONE=== --CLEAN-- --EXPECTF-- Warning: Wrong parameter count for is_file() in %sstat2.php on line %d Warning: Wrong parameter count for is_link() in %sstat2.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===