xref: /PHP-7.0/ext/gd/tests/crafted_gd2.phpt (revision ed3e9619)
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--
14
15Warning: imagecreatefromgd(): '%scrafted.gd2' is not a valid GD file in %s on line %d
16
17