mirror of
https://github.com/php/php-src.git
synced 2024-12-03 23:05:57 +08:00
33 lines
451 B
PHP
33 lines
451 B
PHP
--TEST--
|
|
imagerotate() overflow with negative numbers
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('gd')) {
|
|
die("skip gd extension not available.");
|
|
}
|
|
|
|
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)
|