mirror of
https://github.com/php/php-src.git
synced 2024-09-29 05:46:06 +00:00
2e34febb73
Contrary to the external libgd, the bundled libgd doesn't use optimized rotation algorithms for negative square angles. We fix that now. There are other improvements in gdImageRotateInterpolated() in the external libgd. I'll leave them out for now, in the hope that we'll be able to rejoin the two libraries rather soon.
15 lines
292 B
PHP
15 lines
292 B
PHP
--TEST--
|
|
Bug #66882 (imagerotate by -90 degrees truncates image by 1px)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('gd')) die('skip gd extension not available');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$im = imagerotate(imagecreate(10, 10), -90, 0);
|
|
var_dump(imagesy($im), imagesx($im));
|
|
?>
|
|
--EXPECT--
|
|
int(10)
|
|
int(10)
|