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