From d94d426f6078665eb9a93fc62da0bf51daced675 Mon Sep 17 00:00:00 2001 From: =?utf8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Fri, 31 Jul 2020 10:01:08 +0200 Subject: [PATCH] Fix the default value handling of imagegif() --- ext/gd/gd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 2cb33503fe..b015143ad8 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -4162,7 +4162,7 @@ static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type, zval *to_zval = NULL; if (image_type == PHP_GDIMG_TYPE_GIF) { - if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z", &imgind, gd_image_ce, &to_zval) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!", &imgind, gd_image_ce, &to_zval) == FAILURE) { RETURN_THROWS(); } } else if (image_type == PHP_GDIMG_TYPE_PNG) { -- 2.50.1