xref: /PHP-7.4/ext/gd/tests/crafted_gd2.phpt (revision 26dfce7f)
1--TEST--
2Test max colors for a gd image.
3--SKIPIF--
4<?php
5	if (!extension_loaded('gd')) {
6		die("skip gd extension not available\n");
7	}
8?>
9--FILE--
10<?php
11imagecreatefromgd(__DIR__ . '/crafted.gd2');
12?>
13--EXPECTF--
14Warning: imagecreatefromgd(): '%scrafted.gd2' is not a valid GD file in %s on line %d
15