mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
a375d54785
Cf. PR #6787. Closes GH-6994.
31 lines
402 B
PHP
31 lines
402 B
PHP
--TEST--
|
|
imagerotate() overflow with negative numbers
|
|
--EXTENSIONS--
|
|
gd
|
|
--SKIPIF--
|
|
<?php
|
|
if (!function_exists('imagerotate')) {
|
|
die("skip imagerotate() not available.");
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$im = imagecreate(10, 10);
|
|
|
|
$tmp = imagerotate ($im, 5, -9999999);
|
|
|
|
var_dump($tmp);
|
|
|
|
if ($tmp) {
|
|
imagedestroy($tmp);
|
|
}
|
|
|
|
if ($im) {
|
|
imagedestroy($im);
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
bool(false)
|