From: Josie Messa Date: Fri, 7 Mar 2008 16:19:40 +0000 (+0000) Subject: - Tests awaiting fix of bug #44246 X-Git-Tag: php-5.2.6RC3~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b07a0988b94d3e5ec5daedaed2e1afd66ff6423;p=php - Tests awaiting fix of bug #44246 --- diff --git a/ext/standard/tests/dir/closedir_variation3.phpt b/ext/standard/tests/dir/closedir_variation3.phpt new file mode 100644 index 0000000000..d0e3412b6c --- /dev/null +++ b/ext/standard/tests/dir/closedir_variation3.phpt @@ -0,0 +1,42 @@ +--TEST-- +Test closedir() function : usage variations - close a file pointer +--FILE-- + +===DONE=== +--EXPECTF-- +*** Testing closedir() : usage variations *** + +-- Open a file using fopen() -- +resource(%d) of type (stream) + +-- Try to close the file pointer using closedir() -- +Warning: closedir(): %d is not a valid Directory resource in %s on line %d + +-- Check file pointer: -- +resource(%d) of type (stream) +===DONE=== diff --git a/ext/standard/tests/dir/readdir_variation7.phpt b/ext/standard/tests/dir/readdir_variation7.phpt new file mode 100644 index 0000000000..86bd43061e --- /dev/null +++ b/ext/standard/tests/dir/readdir_variation7.phpt @@ -0,0 +1,36 @@ +--TEST-- +Test readdir() function : usage variations - use file pointers +--FILE-- + +===DONE=== +--EXPECTF-- +*** Testing readdir() : usage variations *** +resource(%d) of type (stream) + +Warning: readdir(): %d is not a valid Directory resource in %s on line %d +bool(false) +===DONE=== diff --git a/ext/standard/tests/dir/rewinddir_variation3.phpt b/ext/standard/tests/dir/rewinddir_variation3.phpt new file mode 100644 index 0000000000..b681e470f6 --- /dev/null +++ b/ext/standard/tests/dir/rewinddir_variation3.phpt @@ -0,0 +1,41 @@ +--TEST-- +Test rewinddir() function : usage variations - file pointers +--FILE-- + +===DONE=== +--EXPECTF-- +*** Testing rewinddir() : usage variations *** + +-- Open a file using fopen -- +resource(%d) of type (stream) +NULL + +-- Check if rewinddir() has repositioned the file pointer -- +rewinddir() does not work on file pointers +===DONE===