tests: fix linux glob test
authorMichael Wallner <mike@php.net>
Wed, 19 Oct 2016 06:40:34 +0000 (06:40 +0000)
committerMichael Wallner <mike@php.net>
Wed, 19 Oct 2016 06:40:34 +0000 (06:40 +0000)
avoid glibc bug with GLOB_BRACE|GLOB_DOOFFS;
see https://sourceware.org/bugzilla/show_bug.cgi?id=20707

tests/glob/glob002.phpt

index 36edb4de4f4af17ce5d798951aa9a7f268301f29..704386fdee621cda979275cda00a8d4e975e467f 100644 (file)
@@ -12,7 +12,7 @@ PHP_OS === "Linux" or die("skip - only for Linux");
 <?php
 chdir(__DIR__);
 $glob = ["gl_offs" => 5];
-var_dump(psi\glob("*002.php{,t}", psi\GLOB_BRACE|psi\GLOB_DOOFFS, $glob));
+var_dump(psi\glob("*002.php*", psi\GLOB_DOOFFS, $glob));
 var_dump($glob);
 ?>
 ===DONE===