xref: /PHP-8.4/ext/gd/tests/bug73279_old.phpt (revision a375d547)
1--TEST--
2Bug #73279 (Integer overflow in gdImageScaleBilinearPalette())
3--EXTENSIONS--
4gd
5--SKIPIF--
6<?php
7if (GD_BUNDLED || version_compare(GD_VERSION, '2.2.4', '>=')) {
8    die('skip only for external libgd < 2.2.4');
9}
10?>
11--FILE--
12<?php
13$src = imagecreate(100, 100);
14imagecolorallocate($src, 255, 255, 255);
15$dst = imagescale($src, 200, 200, IMG_BILINEAR_FIXED);
16printf("color: %x\n", imagecolorat($dst, 99, 99));
17?>
18--XFAIL--
19Bug #330 has not yet been fixed
20--EXPECT--
21color: ffffff
22