1--TEST--
2Testing imagetruecolortopalette(): wrong parameters for parameter 1
3--CREDITS--
4Rafael Dohms <rdohms [at] gmail [dot] com>
5--SKIPIF--
6<?php
7	if (!extension_loaded("gd")) die("skip GD not present");
8	if (!function_exists("imagecreatetruecolor")) die("skip GD Version not compatible");
9?>
10--FILE--
11<?php
12$resource = tmpfile();
13
14imagetruecolortopalette($resource, true, 2);
15imagetruecolortopalette('string', true, 2);
16imagetruecolortopalette(array(), true, 2);
17imagetruecolortopalette(null, true, 2);
18?>
19--EXPECTF--
20Warning: imagetruecolortopalette(): supplied resource is not a valid Image resource in %s on line %d
21
22Warning: imagetruecolortopalette() expects parameter 1 to be resource, %s given in %s on line %d
23
24Warning: imagetruecolortopalette() expects parameter 1 to be resource, array given in %s on line %d
25
26Warning: imagetruecolortopalette() expects parameter 1 to be resource, null given in %s on line %d