diff options
| -rw-r--r-- | ext/gd/tests/bug66590.phpt | 3 | ||||
| -rw-r--r-- | ext/gd/tests/bug70102.phpt | 3 | ||||
| -rw-r--r-- | ext/gd/tests/webp_basic.phpt | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/ext/gd/tests/bug66590.phpt b/ext/gd/tests/bug66590.phpt index a3c5409d6b..7fdeae091c 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 b82c757ebe..81b189d4f4 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 75933a9ca4..55436741db 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');
?>
|
