php-src/ext/gd/tests/bug79068.phpt
Christoph M. Becker a375d54785
Migrate skip checks to --EXTENSIONS-- for ext/gd
Cf. PR #6787.

Closes GH-6994.
2021-05-22 15:38:51 +02:00

16 lines
403 B
PHP

--TEST--
Bug #79068 (gdTransformAffineCopy() changes interpolation method)
--EXTENSIONS--
gd
--FILE--
<?php
$src = imagecreatetruecolor(100, 100);
imagefilledrectangle($src, 0, 0, 99, 99, 0xffffff);
imageline($src, 10, 10, 90, 90, 0x000000);
imagesetinterpolation($src, IMG_BSPLINE);
imageaffine($src, [1, 1, 1, 1, 1, 1]);
var_dump(imagegetinterpolation($src) === IMG_BSPLINE);
?>
--EXPECT--
bool(true)