Skip to content

Commit

Permalink
Merge pull request #172 from remicollet/issue-php73
Browse files Browse the repository at this point in the history
Fix for 7.3: streamed directory are now also executable
  • Loading branch information
allejo committed Jul 23, 2019
2 parents 68b5523 + 00df77b commit 3446552
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -3,6 +3,7 @@ language: php

php:
- 7.2
- 7.3
- nightly

matrix:
Expand Down
13 changes: 10 additions & 3 deletions src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php
Expand Up @@ -255,11 +255,18 @@ public function isExecutableWithCorrectPermission()
/**
* @test
*/
public function directoriesAreNeverExecutable()
public function directoriesAreSometimesExecutable()
{
$this->root->chmod(0766);
assertFalse(is_executable($this->root->url()));
assertFalse(is_executable($this->root->url() . '/.'));
// Inconsistent behavior has been fixed in 7.3
// see https://github.com/php/php-src/commit/94b4abdbc4d
if (PHP_VERSION_ID >= 70300) {
assertTrue(is_executable($this->root->url()));
assertTrue(is_executable($this->root->url() . '/.'));
} else {
assertFalse(is_executable($this->root->url()));
assertFalse(is_executable($this->root->url() . '/.'));
}
}

/**
Expand Down

0 comments on commit 3446552

Please sign in to comment.