#45841 [NEW]: wrong test case about . and .. order
| From: | xuefer at gmail dot com | Date: | Sun, 17 Aug 2008 12:54:20 +0000 |
| Subject: | #45841 [NEW]: wrong test case about . and .. order | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-128148@lists.php.net to get a copy of this message | ||
From: xuefer at gmail dot com
Operating system: linux
PHP version: 5.3CVS-2008-08-17 (CVS)
PHP Bug Type: Unknown/Other Function
Bug description: wrong test case about . and .. order
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 bug report at http://bugs.php.net/?id=45841&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45841&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45841&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45841&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45841&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=45841&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45841&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45841&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45841&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45841&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45841&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=45841&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=45841&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45841&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45841&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45841&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45841&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45841&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45841&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45841&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45841&r=mysqlcfg