Arquivos
hhvm/hphp/test/slow/ext_iterator/1802.php
T
ptarjan 2e5d5fbb15 fix SlowRepo tests
Yay, back to the glory days of having repo tests.

The problem was that we weren't being smart about ##__DIR__.'/some/string'## during the compile step. Now we are.
2013-04-18 12:19:35 -07:00

17 linhas
471 B
PHP

<?php
include __DIR__.'/../../../test/sample_dir/fix_mtimes.inc';
$path = "test/sample_dir/";
$files = array(); // order changes per machine
foreach (new RecursiveIteratorIterator(
new RecursiveDirectoryIterator($path,
RecursiveDirectoryIterator::KEY_AS_PATHNAME),
RecursiveIteratorIterator::CHILD_FIRST) as $file => $info) {
if ($info->isDir() && substr($file,-1)!='.') {
$files[] = $file."\n";
}
}
asort($files);
var_dump(array_values($files));