--TEST-- Phar object: entry & openFile() --SKIPIF-- --INI-- phar.require_hash=0 --FILE-- setInfoClass(); foreach($phar as $name => $ent) { var_dump($ent->getFilename()); if ($ent->isDir()) { var_dump('DIR'); } else { var_dump($ent->openFile()->fgets()); include $ent->getPathName(); } } ?> ===DONE=== --CLEAN-- --EXPECTF-- string(5) "a.php" string(32) "" This is a.php string(1) "b" %s(3) "DIR" string(5) "b.php" string(32) "" This is b.php string(5) "e.php" string(32) "" This is e.php ===DONE===