--TEST-- Test rewinddir() function : usage variations - file pointers --FILE-- getMessage() . "\n"; } $result2 = fread($fp, 5); echo "\n-- Check if rewinddir() has repositioned the file pointer --\n"; if ($result1 === $result2) { echo "rewinddir() works on file pointers\n"; } else { echo "rewinddir() does not work on file pointers\n"; } ?> ===DONE=== --EXPECTF-- *** Testing rewinddir() : usage variations *** -- Open a file using fopen -- resource(%d) of type (stream) %d is not a valid Directory resource -- Check if rewinddir() has repositioned the file pointer -- rewinddir() does not work on file pointers ===DONE===