com php-src: Fix the default value handling of imagegif(): ext/gd/gd.c
| From: | Máté Kocsis | Date: | Fri, 31 Jul 2020 08:01:08 +0000 |
| Subject: | com php-src: Fix the default value handling of imagegif(): ext/gd/gd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-112466@lists.php.net to get a copy of this message | ||
Commit: d94d426f6078665eb9a93fc62da0bf51daced675
Author: Máté Kocsis <kocsismate@woohoolabs.com> Fri, 31 Jul 2020 10:01:08 +0200
Parents: 47e4001976f3ff85a6d479df39dc82d4ceb18b19
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d94d426f6078665eb9a93fc62da0bf51daced675
Log:
Fix the default value handling of imagegif()
Changed paths:
M ext/gd/gd.c
Diff:
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index 2cb33503fe..b015143ad8 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -4162,7 +4162,7 @@ static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int
image_type,
zval *to_zval = NULL;
if (image_type == PHP_GDIMG_TYPE_GIF) {
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z", &imgind, gd_image_ce,
&to_zval) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!", &imgind, gd_image_ce,
&to_zval) == FAILURE) {
RETURN_THROWS();
}
} else if (image_type == PHP_GDIMG_TYPE_PNG) {