Skip to content

Commit 6ab71da

Browse files
committed
fixing bug with php 7.0
1 parent d6dba34 commit 6ab71da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ImageResize.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function __construct($filename)
112112
$finfo = finfo_open(FILEINFO_MIME_TYPE);
113113
$checkWebp = false;
114114
if (strstr(finfo_file($finfo, $filename), 'image') === false) {
115-
if (version_compare(PHP_VERSION, '7.1', '<') && strstr(file_get_contents($filename), 'WEBPVP8') !== false) {
115+
if (version_compare(PHP_VERSION, '7.1.0', '<') && strstr(file_get_contents($filename), 'WEBPVP8') !== false) {
116116
$checkWebp = true;
117117
$this->source_type = IMAGETYPE_WEBP;
118118
} else {

0 commit comments

Comments
 (0)