1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/gd/tests/gh16257.phpt
David Carlier a2bdfeff4f Fix GH-16257 imagescale underflow on RGB channels.
backport of 948bb0a5c2

close GH-16257
2024-10-07 13:05:05 +01:00

13 lines
262 B
PHP

--TEST--
GH-16257 (underflow on RBG channels handling with imagescale)
--EXTENSIONS--
gd
--FILE--
<?php
$im = imagecreatefromstring(file_get_contents(__DIR__ . '/imagecreatefromstring.gif'));
imagescale($im, 32, 32, IMG_BICUBIC);
echo "DONE";
?>
--EXPECT--
DONE