1--TEST--
2Testing imagecolorallocatealpha(): Wrong types for parameter 1
3--CREDITS--
4Rafael Dohms <rdohms [at] gmail [dot] com>
5--SKIPIF--
6<?php
7	if (!extension_loaded("gd")) die("skip GD not present");
8?>
9--FILE--
10<?php
11$resource = tmpfile();
12
13imagecolorallocatealpha($resource, 255, 255, 255, 50);
14imagecolorallocatealpha('string', 255, 255, 255, 50);
15imagecolorallocatealpha(array(), 255, 255, 255, 50);
16imagecolorallocatealpha(null, 255, 255, 255, 50);
17?>
18--EXPECTF--
19Warning: imagecolorallocatealpha(): supplied resource is not a valid Image resource in %s on line %d
20
21Warning: imagecolorallocatealpha() expects parameter 1 to be resource, %s given in %s on line %d
22
23Warning: imagecolorallocatealpha() expects parameter 1 to be resource, array given in %s on line %d
24
25Warning: imagecolorallocatealpha() expects parameter 1 to be resource, null given in %s on line %d
26