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