1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Just return after throwing a ValueError

This commit is contained in:
Christoph M. Becker
2019-09-30 16:30:48 +02:00
parent 8aad466c42
commit a601d519aa

View File

@@ -3147,7 +3147,7 @@ PHP_FUNCTION(imagecopyresized)
if (dstW <= 0 || dstH <= 0 || srcW <= 0 || srcH <= 0) {
zend_value_error("Invalid image dimensions");
RETURN_FALSE;
return;
}
gdImageCopyResized(im_dst, im_src, dstX, dstY, srcX, srcY, dstW, dstH, srcW, srcH);
@@ -3689,7 +3689,7 @@ PHP_FUNCTION(imageflip)
default:
zend_value_error("Unknown flip mode");
RETURN_FALSE;
return;
}
RETURN_TRUE;