mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
The `uchar_clamp` function was backported from old code, this backports it from new code. Closes GH-16562.
16 lines
345 B
PHP
16 lines
345 B
PHP
--TEST--
|
|
GH-16559 (UBSan abort in ext/gd/libgd/gd_interpolation.c:1007)
|
|
--EXTENSIONS--
|
|
gd
|
|
--FILE--
|
|
<?php
|
|
$input = imagecreatefrompng(__DIR__ . '/gh10614.png');
|
|
for ($angle = 0; $angle <= 270; $angle += 90) {
|
|
$output = imagerotate($input, $angle, 0);
|
|
}
|
|
var_dump(imagescale($output, -1, 64, IMG_BICUBIC));
|
|
?>
|
|
--EXPECT--
|
|
object(GdImage)#2 (0) {
|
|
}
|