php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay

| files >> /var/www/html/sub/images/Rm19_symconf/root/php-7.1.11/ext/standard/tests/file/ |
| files >> //var/www/html/sub/images/Rm19_symconf/root/php-7.1.11/ext/standard/tests/file/bug24482.phpt |
--TEST--
Bug #24482 (GLOB_ONLYDIR not working)
--SKIPIF--
<?php
if (!function_exists("glob")) {
die('skip glob() not available');
}
?>
--FILE--
<?php
// run this test in ext/standard/tests (see bug #64714)
chdir(__DIR__); // ensure in ext/standard/tests/file
chdir('..'); // move up to ext/standard/tests
$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
y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`