1--TEST-- 2Testing imagetruecolortopalette(): wrong parameters for parameter 2 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$resource = tmpfile(); 14 15imagetruecolortopalette($image, $resource, 2); 16imagetruecolortopalette($image, array(), 2); 17 18?> 19--EXPECTF-- 20Warning: imagetruecolortopalette() expects parameter 2 to be boolean, resource given in %s on line %d 21 22Warning: imagetruecolortopalette() expects parameter 2 to be boolean, array given in %s on line %d