--TEST-- Testing fseek() on a directory stream --FILE-- --EXPECT-- call readdir(): resource(12) of type (stream) array(6) { [0]=> bool(false) [1]=> unicode(1) "." [2]=> unicode(2) ".." [3]=> unicode(9) "file1.tmp" [4]=> unicode(9) "file2.tmp" [5]=> unicode(9) "file3.tmp" } call fseek() on directory resource: int(0) call readdir(): array(6) { [0]=> bool(false) [1]=> unicode(1) "." [2]=> unicode(2) ".." [3]=> unicode(9) "file1.tmp" [4]=> unicode(9) "file2.tmp" [5]=> unicode(9) "file3.tmp" } call fseek() with different arguments on directory resource: int(0) call readdir(): array(6) { [0]=> bool(false) [1]=> unicode(1) "." [2]=> unicode(2) ".." [3]=> unicode(9) "file1.tmp" [4]=> unicode(9) "file2.tmp" [5]=> unicode(9) "file3.tmp" } bool(true)