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

Commit

Permalink
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/File/IsCompressedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function getMagicMime()
{
// As of PHP >= 5.3.11 and >= 5.4.1 the magic database format has changed.
// http://doc.php.net/downloads/pdf/split/de/File-Information.pdf (page 11)
if (version_compare(PHP_VERSION, '5.3.10', '<=')
if (version_compare(PHP_VERSION, '5.3.11', '<')
|| (version_compare(PHP_VERSION, '5.4', '>=')
&& version_compare(PHP_VERSION, '5.4.1', '<'))
) {
Expand Down
6 changes: 4 additions & 2 deletions test/File/IsImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ protected function getMagicMime()
{
// As of PHP >= 5.3.11 and >= 5.4.1 the magic database format has changed.
// http://doc.php.net/downloads/pdf/split/de/File-Information.pdf (page 11)
if (version_compare(PHP_VERSION, '5.3.10', '<=') || (version_compare(PHP_VERSION, '5.4', '>=') &&
version_compare(PHP_VERSION, '5.4.1', '<'))) {
if (version_compare(PHP_VERSION, '5.3.11', '<')
|| (version_compare(PHP_VERSION, '5.4', '>=')
&& version_compare(PHP_VERSION, '5.4.1', '<'))
) {
return __DIR__ . '/_files/magic.lte.5.3.10.mime';
}

Expand Down

0 comments on commit 3ddc8fa

Please sign in to comment.