diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 8791940089c..68c5f4fe31d 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -3936,12 +3936,6 @@ PHP_FUNCTION(imageaffine) RETURN_THROWS(); } pRect = ▭ - } else { - rect.x = -1; - rect.y = -1; - rect.width = gdImageSX(src); - rect.height = gdImageSY(src); - pRect = NULL; } if (gdTransformAffineGetImage(&dst, src, pRect, affine) != GD_TRUE) {