php-src/ext/spl/tests/bug46053.phpt
2008-09-11 15:31:58 +00:00

13 lines
213 B
PHP

--TEST--
Bug #46053 (SplFileObject::seek - Endless loop)
--FILE--
<?php
$x = new splfileobject(__FILE__);
$x->getPathName();
$x->seek(10);
$x->seek(0);
var_dump(trim($x->fgets()));
--EXPECTF--
string(%d) "<?php"