]> granicus.if.org Git - php/commitdiff
Fix the default value handling of imagegif()
authorMáté Kocsis <kocsismate@woohoolabs.com>
Fri, 31 Jul 2020 08:01:08 +0000 (10:01 +0200)
committerMáté Kocsis <kocsismate@woohoolabs.com>
Fri, 31 Jul 2020 08:01:08 +0000 (10:01 +0200)
ext/gd/gd.c

index 2cb33503fed81e6e62123813ae624685655c36e7..b015143ad80612298c5b290202ace681c228dfce 100644 (file)
@@ -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) {