xref: /PHP-8.4/ext/gd/tests/crafted_gd2.phpt (revision 0aaad46c)
1--TEST--
2Test max colors for a gd image.
3--EXTENSIONS--
4gd
5--SKIPIF--
6<?php
7    if (!GD_BUNDLED && version_compare(GD_VERSION, '2.3.3', '>=')) {
8        die("skip test requires GD 2.3.2 or older");
9    }
10?>
11--FILE--
12<?php
13imagecreatefromgd(__DIR__ . '/crafted.gd2');
14?>
15--EXPECTF--
16Warning: imagecreatefromgd(): "%scrafted.gd2" is not a valid GD file in %s on line %d
17