mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
- Three of our gd tests could be skipped with a message about requiring
bundled GD, but those tests don't actually require bundled GD. We
update the messages to mention the specific functions that are
required.
- add SKIPIF stanzas for missing PNG support
The bundled libgd always has PNG support, but an external one may not.
- imagerotate() is always available
Following 59ec80c5, the imagerotate() function is always available. We
may therefore remove its function_exists() checks without harm.
close GH-17894
19 lines
394 B
PHP
19 lines
394 B
PHP
--TEST--
|
|
Bug #39366 (imagerotate does not respect alpha with angles>45)
|
|
--EXTENSIONS--
|
|
gd
|
|
--FILE--
|
|
<?php
|
|
|
|
$im = imagecreatetruecolor(10,10);
|
|
imagealphablending($im, 0);
|
|
imagefilledrectangle($im, 0,0, 8,8, 0x32FF0000);
|
|
$rotate = imagerotate($im, 180, 0);
|
|
imagecolortransparent($rotate,0);
|
|
imagesavealpha($rotate, true);
|
|
$c = imagecolorat($rotate,5,5);
|
|
printf("%X\n", $c);
|
|
?>
|
|
--EXPECT--
|
|
32FF0000
|