xref: /PHP-8.0/ext/spl/tests/bug46053.phpt (revision 7aacc705)
1--TEST--
2Bug #46053 (SplFileObject::seek - Endless loop)
3--FILE--
4<?php
5
6$x = new splfileobject(__FILE__);
7$x->getPathName();
8$x->seek(10);
9$x->seek(0);
10var_dump(trim($x->fgets()));
11?>
12--EXPECTF--
13string(%d) "<?php"
14