1--TEST-- 2Testing imagecolorallocatealpha(): Wrong types for parameter 4 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$img = imagecreatetruecolor(200, 200); 12 13imagecolorallocatealpha($img, 255, 255, 'string-non-numeric', 50); 14imagecolorallocatealpha($img, 255, 255, array(), 50); 15imagecolorallocatealpha($img, 255, 255, tmpfile(), 50); 16?> 17--EXPECTF-- 18Warning: imagecolorallocatealpha() expects parameter 4 to be integer, %s given in %s on line %d 19 20Warning: imagecolorallocatealpha() expects parameter 4 to be integer, array given in %s on line %d 21 22Warning: imagecolorallocatealpha() expects parameter 4 to be integer, resource given in %s on line %d