From: Ilia Alshanetsky Date: Sat, 21 Feb 2004 16:49:39 +0000 (+0000) Subject: Set correct default threshold for image2wbmp(). X-Git-Tag: RELEASE_0_2_0~239 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc2dc6c85e7657583149f9b5021003b53e56ec4b;p=php Set correct default threshold for image2wbmp(). --- diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 1ce674e2d5..3065fd81b2 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -1723,6 +1723,7 @@ static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char case PHP_GDIMG_CONVERT_WBM: if (q < 0 || q > 255) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid threshold value '%d'. It must be between 0 and 255", q); + q = 0; } gdImageWBMP(im, q, fp); break;