1
0
Fork 0
mirror of https://github.com/mlocati/docker-php-extension-installer synced 2025-05-09 00:22:40 +00:00

Fix gd test

This commit is contained in:
Fred Cox 2020-09-18 21:22:23 +03:00
parent 7ce97ab6ed
commit 01c511fbeb
2 changed files with 2 additions and 2 deletions

View file

@ -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);