cvs: php-src /ext/standard/tests/file bug24482.phpt

From: Date: Fri, 04 Jul 2003 14:38:07 +0000
Subject: cvs: php-src /ext/standard/tests/file bug24482.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-22363@lists.php.net to get a copy of this message
hholzgra Fri Jul 4 10:38:07 2003 EDT Added files: /php-src/ext/standard/tests/file bug24482.phpt Log: regression test for #24482 GLOB_ONLYDIR is not working (on BSD) Index: php-src/ext/standard/tests/file/bug24482.phpt +++ php-src/ext/standard/tests/file/bug24482.phpt --TEST-- Bug #24482: GLOB_ONLYDIR not working --FILE-- <?php $globdirs = glob("*", GLOB_ONLYDIR); $dirs = array(); $dh = opendir("."); while (is_string($file = readdir($dh))) { if ($file{0} === ".") continue; if (!is_dir($file)) continue; $dirs[] = $file; } closedir($dh); if (count($dirs) != count($globdirs)) { echo "Directory count mismatch\n"; echo "glob found:\n"; sort($globdirs); var_dump($globdirs); echo "opendir/readdir/isdir found:\n"; sort($dirs); var_dump($dirs); } else { echo "OK\n"; } ?> --EXPECT-- OK

« previous php.cvs (#22363) next »