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