ID: 45841 Updated by: [EMAIL PROTECTED] Reported By: xuefer at gmail dot com -Status: Open +Status: Closed Bug Type: Filesystem function related Operating System: linux PHP Version: 5.3CVS-2008-08-17 (CVS) New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2008-08-17 12:54:19] xuefer at gmail dot com Description: ------------ at least both tests/dir/readdir_variation2.phpt tests/dir/rewinddir_variation2.phpt assume that directory entry "." is before ".." but it is not in my case Test readdir() function : usage variations - empty directories [/home/xuefer/src/php5/ext/standard/tests/dir/readdir_variation2.phpt] ---- EXPECTED OUTPUT *** Testing readdir() : usage variations *** -- Pass an empty directory to readdir() -- string(1) "." string(2) ".." ===DONE=== ---- ACTUAL OUTPUT *** Testing readdir() : usage variations *** -- Pass an empty directory to readdir() -- string(2) ".." string(1) "." ===DONE=== ---- FAILED Test rewinddir() function : usage variations - operate on a closed directory [/home/xuefer/src/php5/ext/standard/tests/dir/rewinddir_variation2.phpt] ---- EXPECTED OUTPUT *** Testing rewinddir() : usage variations *** -- Create the directory handle, read and close the directory -- resource(%d) of type (stream) string(1) "." -- Call to rewinddir() -- Warning: rewinddir(): %d is not a valid Directory resource in %s on line %d bool(false) ===DONE=== ---- ACTUAL OUTPUT *** Testing rewinddir() : usage variations *** -- Create the directory handle, read and close the directory -- resource(5) of type (stream) string(2) ".." -- Call to rewinddir() -- Warning: rewinddir(): 5 is not a valid Directory resource in /home/xuefer/src/php5/ext/standard/tests/dir/rewinddir_variation2.php on line 23 bool(false) ===DONE=== ---- FAILED ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45841&edit=1
