Properly skip tests that require the bundled gd lib when the external is used

This commit is contained in:
Raphael Geissert 2010-03-11 05:49:50 +00:00
parent 51de55b6e6
commit cf711f6ee8
7 changed files with 7 additions and 4 deletions

View File

@ -5,6 +5,7 @@ Bug #42434 (ImageLine w/ antialias = 1px shorter)
if (!extension_loaded('gd')) {
die('skip gd extension not available');
}
if (!GD_BUNDLED) die("skip requires bundled GD library\n");
?>
--FILE--
<?php

View File

@ -6,6 +6,7 @@ Guilherme Blanco <guilhermeblanco [at] hotmail [dot] com>
--SKIPIF--
<?php
if (!extension_loaded("gd")) die("skip GD not present");
if (!GD_BUNDLED) die("skip requires bundled GD library\n");
?>
--FILE--
<?php

View File

@ -6,6 +6,7 @@ Guilherme Blanco <guilhermeblanco [at] hotmail [dot] com>
--SKIPIF--
<?php
if (!extension_loaded("gd")) die("skip GD not present");
if (!GD_BUNDLED) die("skip requires bundled GD library\n");
?>
--FILE--
<?php

View File

@ -6,7 +6,7 @@ Rafael Dohms <rdohms [at] gmail [dot] com>
--SKIPIF--
<?php
if (!extension_loaded("gd")) die("skip GD not present");
if (!GD_BUNDLED) die('function only available in bundled, external GD detected');
if (!GD_BUNDLED) die('skip function only available in bundled, external GD detected');
?>
--FILE--
<?php

View File

@ -6,7 +6,7 @@ Rafael Dohms <rdohms [at] gmail [dot] com>
--SKIPIF--
<?php
if (!extension_loaded("gd")) die("skip GD not present");
if (!GD_BUNDLED) die('function only available in bundled, external GD detected');
if (!GD_BUNDLED) die('skip function only available in bundled, external GD detected');
?>
--FILE--
<?php

View File

@ -6,7 +6,7 @@ Rafael Dohms <rdohms [at] gmail [dot] com>
--SKIPIF--
<?php
if (!extension_loaded("gd")) die("skip GD not present");
if (!GD_BUNDLED) die('function only available in bundled, external GD detected');
if (!GD_BUNDLED) die('skip function only available in bundled, external GD detected');
?>
--FILE--
<?php

View File

@ -6,7 +6,7 @@ Rafael Dohms <rdohms [at] gmail [dot] com>
--SKIPIF--
<?php
if (!extension_loaded("gd")) die("skip GD not present");
if (!GD_BUNDLED) die('function only available in bundled, external GD detected');
if (!GD_BUNDLED) die('skip function only available in bundled, external GD detected');
?>
--FILE--
<?php