xref: /PHP-8.2/ext/gd/tests/bug79068.phpt (revision a375d547)
1--TEST--
2Bug #79068 (gdTransformAffineCopy() changes interpolation method)
3--EXTENSIONS--
4gd
5--FILE--
6<?php
7$src = imagecreatetruecolor(100, 100);
8imagefilledrectangle($src, 0, 0, 99, 99, 0xffffff);
9imageline($src, 10, 10, 90, 90, 0x000000);
10imagesetinterpolation($src, IMG_BSPLINE);
11imageaffine($src, [1, 1, 1, 1, 1, 1]);
12var_dump(imagegetinterpolation($src) === IMG_BSPLINE);
13?>
14--EXPECT--
15bool(true)
16