xref: /PHP-7.2/ext/gd/tests/crafted_gd2.phpt (revision f1d7e3ca)
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(dirname(__FILE__) . '/crafted.gd2');
12?>
13--EXPECTF--
14Warning: imagecreatefromgd(): '%scrafted.gd2' is not a valid GD file in %s on line %d
15