1--TEST--
2imagepalettetotruecollor must return an error if not an image 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
11$im = fopen('php://memory', 'w');
12imagepalettetotruecolor($im);
13?>
14--EXPECTF--
15Warning: imagepalettetotruecolor(): supplied resource is not a valid Image resource in %s on line %d
16