com php-src: Skip tests for unpatched external libgd regarding libvpx: ext/gd/tests/bug66590.phpt ext/gd/tests/bug70102.phpt
ext/gd/tests/webp_basic.phpt
| From: | Christoph Michael Becker | Date: | Sun, 11 Sep 2016 21:49:09 +0000 |
| Subject: | com php-src: Skip tests for unpatched external libgd regarding libvpx: ext/gd/tests/bug66590.phpt ext/gd/tests/bug70102.phpt ext/gd/tests/webp_basic.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-94431@lists.php.net to get a copy of this message | ||
Commit: 6d0e773292992726c9847421f0a8c9bbfa962b0d
Author: Christoph M. Becker <cmbecker69@gmx.de> Sun, 11 Sep 2016 23:49:09 +0200
Parents: 6ef987e012b505397ccc28d9014f14f762cbb07b
Branches: PHP-5.6 PHP-7..0 PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6d0e773292992726c9847421f0a8c9bbfa962b0d
Log:
Skip tests for unpatched external libgd regarding libvpx
Some issues have never been fixed in the external libgd's libvpx binding,
so we skip the respective tests.
Changed paths:
M ext/gd/tests/bug66590.phpt
M ext/gd/tests/bug70102.phpt
M ext/gd/tests/webp_basic.phpt
Diff:
diff --git a/ext/gd/tests/bug66590.phpt b/ext/gd/tests/bug66590.phpt
index a3c5409..7fdeae0 100644
--- a/ext/gd/tests/bug66590.phpt
+++ b/ext/gd/tests/bug66590.phpt
@@ -3,6 +3,9 @@ Bug #66590 (imagewebp() doesn't pad to even length)
--SKIPIF--
<?php
if (!extension_loaded('gd')) die('skip gd extension not available');
+if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.0', '<')) {
+ die("skip test requires GD 2.2.0 or higher");
+}
if (!function_exists('imagewebp')) die('skip WebP support not available');
?>
--FILE--
diff --git a/ext/gd/tests/bug70102.phpt b/ext/gd/tests/bug70102.phpt
index b82c757..81b189d 100644
--- a/ext/gd/tests/bug70102.phpt
+++ b/ext/gd/tests/bug70102.phpt
@@ -3,6 +3,9 @@ Bug #70102 (imagecreatefromwebm() shifts colors)
--SKIPIF--
<?php
if (!extension_loaded('gd')) die('skip gd extension not available');
+if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.0', '<')) {
+ die("skip test requires GD 2.2.0 or higher");
+}
if (!function_exists('imagewebp') || !function_exists('imagecreatefromwebp'))
die('skip WebP support not available');
?>
diff --git a/ext/gd/tests/webp_basic.phpt b/ext/gd/tests/webp_basic.phpt
index 75933a9..5543674 100644
--- a/ext/gd/tests/webp_basic.phpt
+++ b/ext/gd/tests/webp_basic.phpt
@@ -3,6 +3,9 @@ imagewebp() and imagecreatefromwebp() - basic test
--SKIPIF--
<?php
if (!extension_loaded('gd')) die('skip gd extension not available');
+if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.0', '<')) {
+ die("skip test requires GD 2.2.0 or higher");
+}
if (!function_exists('imagewebp') || !function_exists('imagecreatefromwebp'))
die('skip WebP support not available');
?>