]> granicus.if.org Git - php/commitdiff
Fix null foreground in imagewbmp
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 14 Oct 2020 14:40:09 +0000 (16:40 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 14 Oct 2020 14:40:35 +0000 (16:40 +0200)
The variable was not actually passed to zpp...

ext/gd/gd.c

index 4c2df61f9e3654aa60273c64699a3ec5c05a7090..22473798846f4930240c97b0c084dc1e958e57ca 100644 (file)
@@ -1956,7 +1956,7 @@ PHP_FUNCTION(imagewbmp)
        gdIOCtx *ctx = NULL;
        zval *to_zval = NULL;
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!l!", &imgind, gd_image_ce, &to_zval, &foreground_color) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!l!", &imgind, gd_image_ce, &to_zval, &foreground_color, &foreground_color_is_null) == FAILURE) {
                RETURN_THROWS();
        }