1--TEST--
2imagerotate() overflow with negative numbers
3--EXTENSIONS--
4gd
5--FILE--
6<?php
7
8$im = imagecreate(10, 10);
9
10$tmp = imagerotate ($im, 5, -9999999);
11
12var_dump($tmp);
13
14if ($tmp) {
15        imagedestroy($tmp);
16}
17
18if ($im) {
19        imagedestroy($im);
20}
21
22?>
23--EXPECT--
24bool(false)
25