--TEST-- Test rewinddir() function : basic functionality --FILE-- --CLEAN-- --EXPECTF-- *** Testing rewinddir() : basic functionality *** resource(%d) of type (stream) resource(%d) of type (stream) -- Read and rewind first directory (argument supplied) -- array(3) { [0]=> string(1) "." [1]=> string(2) ".." [2]=> string(9) "file1.tmp" } NULL bool(true) -- Read and rewind second directory (no argument supplied) -- Deprecated: readdir(): Passing null is deprecated, instead the last opened directory stream should be provided in %s on line %d Deprecated: readdir(): Passing null is deprecated, instead the last opened directory stream should be provided in %s on line %d Deprecated: readdir(): Passing null is deprecated, instead the last opened directory stream should be provided in %s on line %d Deprecated: readdir(): Passing null is deprecated, instead the last opened directory stream should be provided in %s on line %d array(3) { [0]=> string(1) "." [1]=> string(2) ".." [2]=> string(9) "file2.tmp" } Deprecated: rewinddir(): Passing null is deprecated, instead the last opened directory stream should be provided in %s on line %d NULL Deprecated: readdir(): Passing null is deprecated, instead the last opened directory stream should be provided in %s on line %d bool(true)