1--TEST--
2imagepalettetotruecollor must return an error if not a resource is given
3--CREDITS--
4Carlos André Ferrari <caferrari [at] gmail [dot] com>
5--SKIPIF--
6<?php
7    if (!extension_loaded('gd')) die("skip gd extension not available.");
8?>
9--FILE--
10<?php
11imagepalettetotruecolor("bla");
12?>
13--EXPECTF--
14Warning: imagepalettetotruecolor() expects parameter 1 to be resource, string given in %s on line %d
15