--TEST-- Phar: test edge cases of opendir() function interception --SKIPIF-- --INI-- phar.readonly=0 --FILE-- getMessage(), "\n"; } mkdir(__DIR__ . '/opendir_edgecases'); chdir(__DIR__); $a = opendir('opendir_edgecases'); $arr = array(); while (false !== ($b = readdir($a))) { $arr[] = $b; } sort($arr); foreach ($arr as $b) { echo "$b\n"; } closedir($a); file_put_contents($pname . '/foo', ''); include $pname . '/foo'; ?> --CLEAN--