summaryrefslogtreecommitdiff
path: root/ext/gd/gd.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-02-21 16:49:39 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-02-21 16:49:39 +0000
commitcc2dc6c85e7657583149f9b5021003b53e56ec4b (patch)
tree00322c077e1927fc8d60449d82fd012a3f12a7f3 /ext/gd/gd.c
parent7af39b1aadcbbd6936cc823b49dc01478fc7239d (diff)
downloadphp-git-cc2dc6c85e7657583149f9b5021003b53e56ec4b.tar.gz
Set correct default threshold for image2wbmp().
Diffstat (limited to 'ext/gd/gd.c')
-rw-r--r--ext/gd/gd.c1
1 files changed, 1 insertions, 0 deletions
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;