Skip to content

Commit 187efc6

Browse files
committed
Fix null foreground in imagewbmp
The variable was not actually passed to zpp...
1 parent 1610e81 commit 187efc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/gd/gd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1956,7 +1956,7 @@ PHP_FUNCTION(imagewbmp)
19561956
gdIOCtx *ctx = NULL;
19571957
zval *to_zval = NULL;
19581958

1959-
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!l!", &imgind, gd_image_ce, &to_zval, &foreground_color) == FAILURE) {
1959+
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!l!", &imgind, gd_image_ce, &to_zval, &foreground_color, &foreground_color_is_null) == FAILURE) {
19601960
RETURN_THROWS();
19611961
}
19621962

0 commit comments

Comments
 (0)