Don't try to imagedestroy() FALSE

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344284 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christoph Michael Becker 2018-02-18 19:09:02 +00:00
parent aa8396c551
commit f3bdf92d3e

View file

@ -60,9 +60,9 @@ $size = min(imagesx($im), imagesy($im));
$im2 = imagecrop($im, ['x' => 0, 'y' => 0, 'width' => $size, 'height' => $size]);
if ($im2 !== FALSE) {
imagepng($im2, 'example-cropped.png');
imagedestroy($im2);
}
imagedestroy($im);
imagedestroy($im2);
?>
]]>
</programlisting>