1--TEST--
2Testing imagetruecolortopalette(): wrong types for second parameter
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(200, 100);
13
14imagesetthickness($image, 's');
15imagesetthickness($image, array());
16imagesetthickness($image, $image);
17
18?>
19--EXPECTF--
20Warning: imagesetthickness() expects parameter 2 to be long, string given in %s on line %d
21
22Warning: imagesetthickness() expects parameter 2 to be long, array given in %s on line %d
23
24Warning: imagesetthickness() expects parameter 2 to be long, resource given in %s on line %d