Révision cd5c298a
Ajouté par Geoffroy Desvernay il y a environ 5 ans
drupal7/modules/simpletest/tests/image.test | ||
---|---|---|
335 | 335 |
); |
336 | 336 |
|
337 | 337 |
// Systems using non-bundled GD2 don't have imagerotate. Test if available. |
338 |
if (function_exists('imagerotate')) { |
|
338 |
// @todo Remove the version check once https://www.drupal.org/node/2918570 |
|
339 |
// is resolved. |
|
340 |
if (function_exists('imagerotate') && (version_compare(PHP_VERSION, '7.0.26', '<') || (version_compare(PHP_VERSION, '7.1', '>=') && version_compare(PHP_VERSION, '7.1.12', '<')))) { |
|
339 | 341 |
$operations += array( |
340 | 342 |
'rotate_90' => array( |
341 | 343 |
'function' => 'rotate', |
... | ... | |
357 | 359 |
// See https://bugs.php.net/bug.php?id=65148. |
358 | 360 |
// For the 40x20 test images, the dimensions resulting from rotation will |
359 | 361 |
// be 1 pixel smaller in both width and height in PHP 5.5 and above. |
360 |
// @todo: If and when the PHP bug gets solved, add an upper limit
|
|
361 |
// version check.
|
|
362 |
// @todo: The PHP bug was fixed in PHP 7.0.26 and 7.1.12. Change the code
|
|
363 |
// below to reflect that in https://www.drupal.org/node/2918570.
|
|
362 | 364 |
if (version_compare(PHP_VERSION, '5.5', '>=')) { |
363 | 365 |
$operations += array( |
364 | 366 |
'rotate_5' => array( |
Formats disponibles : Unified diff
MAJ 7.60 -> 7.62