summaryrefslogtreecommitdiff
path: root/ext/gd/gd.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-03-17 15:05:09 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-03-17 15:05:09 +0100
commitc17434429d4de525a8eb8c33af77324e03a14684 (patch)
treed8fff662284a4a39bad5145b9f290198975c499d /ext/gd/gd.c
parentfaf1567212bb83e39bf113149bf31abf719ca3a5 (diff)
downloadphp-git-c17434429d4de525a8eb8c33af77324e03a14684.tar.gz
Return bool from imageinterlace()
The function accepts a bool since PHP 8.0, so it should also return a bool to keep things consistent. Furthermore a null return from this functions is not possible.
Diffstat (limited to 'ext/gd/gd.c')
-rw-r--r--ext/gd/gd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index b0abecc6f7..46704c60cf 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -2601,7 +2601,7 @@ PHP_FUNCTION(imageinterlace)
gdImageInterlace(im, INT);
}
- RETURN_LONG(gdImageGetInterlaced(im));
+ RETURN_BOOL(gdImageGetInterlaced(im));
}
/* }}} */