mirror of
https://github.com/danog/docker-php-extension-installer.git
synced 2024-11-30 04:29:15 +01:00
Fix gd test
This commit is contained in:
parent
7ce97ab6ed
commit
01c511fbeb
@ -10,7 +10,7 @@ decimal 7.0 7.1 7.2 7.3 7.4
|
||||
enchant 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
|
||||
exif 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
|
||||
ffi 7.4 8.0
|
||||
gd 5.5 5.6 7.0 7.1 7.2 7.3 7.4
|
||||
gd 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
|
||||
gettext 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
|
||||
gmagick 5.5 5.6 7.0 7.1 7.2 7.3 7.4
|
||||
gmp 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
|
||||
|
@ -55,7 +55,7 @@ try {
|
||||
$image2 = $loadFuntion($tempFile);
|
||||
unlink($tempFile);
|
||||
$tempFile = null;
|
||||
if (!is_resource($image2) || imagesx($image2) !== $imageWidth || imagesy($image2) !== $imageHeight) {
|
||||
if (!(is_resource($image2) || is_object($image2)) || imagesx($image2) !== $imageWidth || imagesy($image2) !== $imageHeight) {
|
||||
throw new Exception("{$loadFuntion}() failed");
|
||||
}
|
||||
imagedestroy($image2);
|
||||
|
Loading…
Reference in New Issue
Block a user