Skip to content

Commit

Permalink
Fix null foreground in imagewbmp
Browse files Browse the repository at this point in the history
The variable was not actually passed to zpp...
  • Loading branch information
nikic committed Oct 14, 2020
1 parent 1610e81 commit 187efc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/gd/gd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 187efc6

Please sign in to comment.