xref: /PHP-5.3/ext/spl/tests/bug46053.phpt (revision c238cb8f)
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--EXPECTF--
12string(%d) "<?php"
13