Annotation of embedaddon/php/ext/gd/tests/imagerotate_overflow.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: imagerotate() 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:
20: var_dump($tmp);
21:
22: if ($tmp) {
23: imagedestroy($tmp);
24: }
25:
26: if ($im) {
27: imagedestroy($im);
28: }
29:
30: ?>
31: --EXPECT--
32: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>