]> granicus.if.org Git - php/commitdiff
Fix arginfo
authorChristoph M. Becker <cmbecker69@gmx.de>
Sun, 11 Aug 2019 11:43:45 +0000 (13:43 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sun, 11 Aug 2019 11:54:52 +0000 (13:54 +0200)
ext/gd/gd.stub.php
ext/gd/gd_arginfo.h

index 688f8ee6229441963352187254b3799cb2bcf433..021b79ead28e0e080d44a93c7414be57ed8576ad 100644 (file)
@@ -243,7 +243,7 @@ function imageconvolution($im, array $matrix3x3, float $div, float $offset): boo
 
 function imageflip($im, int $mode): bool {}
 
-function imageantialias($im, int $on): bool {}
+function imageantialias($im, bool $on): bool {}
 
 /** @return resource|false */
 function imagecrop($im, array $rect) {}
index 43de99259d838ff0f2b37bc04fee8db594ffc66c..bc26ea834a22ee494672f51b995a26a53f4e26d5 100644 (file)
@@ -527,7 +527,7 @@ ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imageantialias, 0, 2, _IS_BOOL, 0)
        ZEND_ARG_INFO(0, im)
-       ZEND_ARG_TYPE_INFO(0, on, IS_LONG, 0)
+       ZEND_ARG_TYPE_INFO(0, on, _IS_BOOL, 0)
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_imagecrop, 0, 0, 2)