Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge pull request zendframework/zendframework#1936 from EvanDotPro/h…
Browse files Browse the repository at this point in the history
…otfix/glob-constant-value

Fix GLOB_ERR constant value
  • Loading branch information
DASPRiD committed Jul 20, 2012
8 parents cb39e7e + 54a28dc + c9c769e + dda791d + 70d382a + 8bbad0e + 9321185 + 370cf4d commit 7ab35a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Glob.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ abstract class Glob
const GLOB_NOESCAPE = 0x08;
const GLOB_BRACE = 0x10;
const GLOB_ONLYDIR = 0x20;
const GLOB_ERR = 0x30;
const GLOB_ERR = 0x40;
/**#@-*/

/**
Expand Down
6 changes: 6 additions & 0 deletions test/GlobTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,10 @@ public function testFallback()
Glob::glob(__DIR__ . '/_files/{alph,bet}a', Glob::GLOB_BRACE, true)
);
}

public function testNonMatchingGlobReturnsArray()
{
$result = Glob::glob('/some/path/{,*.}{this,orthis}.php', Glob::GLOB_BRACE);
$this->assertInternalType('array', $result);
}
}

0 comments on commit 7ab35a6

Please sign in to comment.