xref: /PHP-8.0/ext/gd/tests/bug79068.phpt (revision 03bd4333)
1--TEST--
2Bug #79068 (gdTransformAffineCopy() changes interpolation method)
3--SKIPIF--
4<?php
5if (!extension_loaded('gd')) die('skip gd extension not available');
6?>
7--FILE--
8<?php
9$src = imagecreatetruecolor(100, 100);
10imagefilledrectangle($src, 0, 0, 99, 99, 0xffffff);
11imageline($src, 10, 10, 90, 90, 0x000000);
12imagesetinterpolation($src, IMG_BSPLINE);
13imageaffine($src, [1, 1, 1, 1, 1, 1]);
14var_dump(imagegetinterpolation($src) === IMG_BSPLINE);
15?>
16--EXPECT--
17bool(true)
18