1--TEST--
2Testing imagetruecolortopalette(): out of range parameter 3
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$image = imagecreatetruecolor(50, 50);
13
14imagetruecolortopalette($image, true, 0);
15imagetruecolortopalette($image, true, -1);
16
17?>
18--EXPECTF--
19Warning: imagetruecolortopalette(): Number of colors has to be greater than zero and no more than %d in %s line %d
20
21Warning: imagetruecolortopalette(): Number of colors has to be greater than zero and no more than %d in %s line %d
22