1--TEST-- 2imagefilledpolygon() with a negative num of points 3--SKIPIF-- 4<?php 5 if (!function_exists('imagefilledpolygon')) die('skip imagefilledpolygon() not available'); 6?> 7--FILE-- 8<?php 9$im = imagecreate(100, 100); 10$black = imagecolorallocate($im, 0, 0, 0); 11if (imagefilledpolygon($im, array(0, 0, 0, 0, 0, 0), -1, $black)) echo "should be false"; 12imagedestroy($im); 13?> 14--EXPECTF-- 15Warning: imagefilledpolygon(): You must give a positive number of points in %s on line %d 16