gdImageInterlace(im, INT);
}
- RETURN_LONG(gdImageGetInterlaced(im));
+ RETURN_BOOL(gdImageGetInterlaced(im));
}
/* }}} */
function imagecolortransparent(GdImage $image, ?int $color = null): ?int {}
-function imageinterlace(GdImage $image, ?bool $enable = null): ?int {}
+function imageinterlace(GdImage $image, ?bool $enable = null): bool {}
function imagepolygon(GdImage $image, array $points, int $num_points_or_color, ?int $color = null): bool {}
/* This is a generated file, edit the .stub.php file instead.
- * Stub hash: 63898b501cc3ae38585fe0c6f70a9f7865fbee4d */
+ * Stub hash: 155175c4f5b60aaed37df2210ae6a5e7f979dae2 */
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gd_info, 0, 0, IS_ARRAY, 0)
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, color, IS_LONG, 1, "null")
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imageinterlace, 0, 1, IS_LONG, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imageinterlace, 0, 1, _IS_BOOL, 0)
ZEND_ARG_OBJ_INFO(0, image, GdImage, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, enable, _IS_BOOL, 1, "null")
ZEND_END_ARG_INFO()
<?php
$im = imagecreatetruecolor(10, 10);
imagefilledrectangle($im, 0, 0, 9, 9, imagecolorallocate($im, 255, 255, 255));
-imageinterlace($im, 1);
+imageinterlace($im, true);
imagegif($im, __DIR__ . 'bug77700.gif');
$im = imagecreatefromgif(__DIR__ . 'bug77700.gif');
var_dump(imageinterlace($im));
?>
--EXPECT--
-int(1)
+bool(true)
--CLEAN--
<?php
unlink(__DIR__ . 'bug77700.gif');
var_dump(imageinterlace($image));
?>
--EXPECT--
-int(0)
+bool(false)
$image = imagecreatetruecolor(100, 100);
-var_dump(imageinterlace($image, 1));
+var_dump(imageinterlace($image, true));
var_dump(imageinterlace($image));
?>
--EXPECT--
-int(1)
-int(1)
+bool(true)
+bool(true)
$image = imagecreatetruecolor(100, 100);
//setting the interlace bit to on
-imageinterlace($image, 1);
+imageinterlace($image, true);
//setting de interlace bit to off
-var_dump(imageinterlace($image, 0));
+var_dump(imageinterlace($image, false));
var_dump(imageinterlace($image));
?>
--EXPECT--
-int(0)
-int(0)
+bool(false)
+bool(false)