summaryrefslogtreecommitdiff
path: root/ext/gd/gd_ctx.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gd/gd_ctx.c')
-rw-r--r--ext/gd/gd_ctx.c20
1 files changed, 3 insertions, 17 deletions
diff --git a/ext/gd/gd_ctx.c b/ext/gd/gd_ctx.c
index d1c3771f23..03700ebca8 100644
--- a/ext/gd/gd_ctx.c
+++ b/ext/gd/gd_ctx.c
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
- | Copyright (c) 1997-2018 The PHP Group |
+ | Copyright (c) The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -93,9 +93,8 @@ static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type,
php_stream *stream;
int close_stream = 1;
- /* The third (quality) parameter for Wbmp stands for the foreground when called from image2wbmp().
- * The third (quality) parameter for Wbmp and Xbm stands for the foreground color index when called
- * from imagey<type>().
+ /* The third (quality) parameter for Wbmp and Xbm stands for the foreground color index when called
+ * from image<type>().
*/
switch (image_type) {
case PHP_GDIMG_TYPE_XBM:
@@ -177,10 +176,6 @@ static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type,
}
switch(image_type) {
- case PHP_GDIMG_CONVERT_WBM:
- if(q<0||q>255) {
- php_error_docref(NULL, E_WARNING, "Invalid threshold value '%d'. It must be between 0 and 255", q);
- }
case PHP_GDIMG_TYPE_JPG:
(*func_p)(im, ctx, q);
break;
@@ -220,12 +215,3 @@ static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type,
RETURN_TRUE;
}
/* }}} */
-
-/*
- * Local variables:
- * tab-width: 4
- * c-basic-offset: 4
- * End:
- * vim600: sw=4 ts=4 fdm=marker
- * vim<600: sw=4 ts=4
- */