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

Commit

Permalink
Merge branch 'feature/4397' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/File/IsCompressedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ protected function getMagicMime()
return __DIR__ . '/_files/magic.lte.5.3.10.mime';
}

// Ubuntu has backported the changes in 12.04 to PHP 5.3.10.
if (strpos(PHP_VERSION, 'ubuntu') !== false && version_compare(PHP_VERSION, '5.3.10', '>=')) {
return __DIR__ . '/_files/magic.lte.5.3.10.mime';
}

return __DIR__ . '/_files/magic.mime';
}

Expand Down
5 changes: 5 additions & 0 deletions test/File/IsImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ protected function getMagicMime()
return __DIR__ . '/_files/magic.lte.5.3.10.mime';
}

// Ubuntu has backported the changes in 12.04 to PHP 5.3.10.
if (strpos(PHP_VERSION, 'ubuntu') !== false && version_compare(PHP_VERSION, '5.3.10', '>=')) {
return __DIR__ . '/_files/magic.lte.5.3.10.mime';
}

return __DIR__ . '/_files/magic.mime';
}

Expand Down

0 comments on commit c552cbc

Please sign in to comment.