1--TEST--
2imagerotate() overflow with negative numbers
3--SKIPIF--
4<?php
5	if (!extension_loaded('gd')) {
6		die("skip gd extension not available.");
7	}
8
9	if (!function_exists('imagerotate')) {
10		die("skip imagerotate() not available.");
11	}
12?>
13--FILE--
14<?php
15
16$im = imagecreate(10, 10);
17
18$tmp = imagerotate ($im, 5, -9999999);
19
20var_dump($tmp);
21
22if ($tmp) {
23        imagedestroy($tmp);
24}
25
26if ($im) {
27        imagedestroy($im);
28}
29
30?>
31--EXPECT--
32bool(false)
33