From 187efc6496b71ed73d3723aac243b1989afc81d1 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 14 Oct 2020 16:40:09 +0200 Subject: [PATCH] Fix null foreground in imagewbmp The variable was not actually passed to zpp... --- 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 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(); } -- 2.40.0