Skip to content

Commit d94d426

Browse files
committed
Fix the default value handling of imagegif()
1 parent 47e4001 commit d94d426

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
@@ -4162,7 +4162,7 @@ static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type,
41624162
zval *to_zval = NULL;
41634163

41644164
if (image_type == PHP_GDIMG_TYPE_GIF) {
4165-
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z", &imgind, gd_image_ce, &to_zval) == FAILURE) {
4165+
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!", &imgind, gd_image_ce, &to_zval) == FAILURE) {
41664166
RETURN_THROWS();
41674167
}
41684168
} else if (image_type == PHP_GDIMG_TYPE_PNG) {

0 commit comments

Comments
 (0)