missed a couple of big globs

This commit is contained in:
Shish 2012-05-23 11:35:30 +01:00
parent bfd4ddea17
commit 5fdb54c9ec
2 changed files with 2 additions and 2 deletions

View file

@ -200,7 +200,7 @@ class TestFinder extends TestSuite {
$dir = "{".ENABLED_EXTS."}"; $dir = "{".ENABLED_EXTS."}";
if(file_exists("ext/$hint/test.php")) $dir = $hint; if(file_exists("ext/$hint/test.php")) $dir = $hint;
$this->TestSuite('All tests'); $this->TestSuite('All tests');
foreach(glob("ext/$dir/test.php", GLOB_BRACE) as $file) { foreach(zglob("ext/$dir/test.php") as $file) {
$this->addFile($file); $this->addFile($file);
} }
} }

View file

@ -67,7 +67,7 @@ _start_cache();
try { try {
// load base files // load base files
ctx_log_start("Opening files"); ctx_log_start("Opening files");
$files = array_merge(glob("core/*.php"), glob("ext/{".ENABLED_EXTS."}/main.php", GLOB_BRACE)); $files = array_merge(zglob("core/*.php"), zglob("ext/{".ENABLED_EXTS."}/main.php"));
foreach($files as $filename) { foreach($files as $filename) {
require_once $filename; require_once $filename;
} }