--TEST-- Phar object: access through SplFileObject --SKIPIF-- --INI-- phar.require_hash=0 --FILE-- setInfoClass('MyFile'); $f = $phar['a.php']; $s = $f->fstat(); var_dump($s['atime']); var_dump($s['ctime']); var_dump($s['mtime']); var_dump($f->ftell()); var_dump($f->eof()); var_dump($f->fgets()); var_dump($f->eof()); var_dump($f->fseek(20)); var_dump($f->ftell()); var_dump($f->fgets()); var_dump($f->rewind()); var_dump($f->ftell()); var_dump($f->fgets()); var_dump($f->ftell()); ?> ===AGAIN=== ftell()); var_dump($f->eof()); var_dump($f->fgets()); var_dump($f->eof()); //unset($f); without unset we check for working refcounting ?> --CLEAN-- --EXPECTF-- MyFile::__construct(phar://*/files/phar_oo_007.phar.php/a.php) int(%d) int(%d) int(%d) int(0) bool(false) string(32) "" bool(true) int(0) int(20) string(12) "a.php\n"; ?>" NULL int(0) string(32) "" int(32) ===AGAIN=== MyFile::__construct(phar://*/files/phar_oo_007.phar.php/a.php) int(0) bool(false) string(32) "" bool(true)