From: Nikita Popov Date: Wed, 14 Oct 2020 14:40:09 +0000 (+0200) Subject: Fix null foreground in imagewbmp X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=187efc6496b71ed73d3723aac243b1989afc81d1;p=php Fix null foreground in imagewbmp The variable was not actually passed to zpp... --- diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 4c2df61f9e..2247379884 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -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(); }