]> granicus.if.org Git - php/commitdiff
Remove superfluous checks for PNG support
authorChristoph M. Becker <cmbecker69@gmx.de>
Tue, 18 Oct 2016 12:16:46 +0000 (14:16 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Tue, 18 Oct 2016 12:17:37 +0000 (14:17 +0200)
PNG support is required to build ext/gd, so there's no need to check
for it in the tests.

ext/gd/tests/bug72604.phpt
ext/gd/tests/imagecopyresampled_basic.phpt
ext/gd/tests/imagedashedline_basic.phpt
ext/gd/tests/imagefilledpolygon_basic.phpt

index f9592c05b7675051d13c289dc66929258c2294de..5cbaba7504abbd7f62894bd7a8250e36a8ccf33a 100644 (file)
@@ -3,7 +3,6 @@ Bug #72604 (imagearc() ignores thickness for full arcs)
 --SKIPIF--
 <?php
 if (!extension_loaded('gd')) die('skip requires ext/gd');
-if (!(imagetypes() & IMG_PNG)) die('skip requires PNG support');
 ?>
 --FILE--
 <?php
index fd96ab6928439744be7ef539e3eeb9d6ff8d795e..edf7ba6548795292df1ad4f3aff0d8c9c7621b58 100644 (file)
@@ -3,7 +3,6 @@ imagecopyresampled()
 --SKIPIF--
 <?php 
        if (!function_exists('imagecopyresampled')) die('skip imagecopyresampled() not available'); 
-       if (!(imagetype() & IMG_PNG)) die('skip PNG Support is not enabled');
 ?>
 --FILE--
 <?php
index be65af66d0dcc23e8ec2b0a8617333ec02d35c04..35525f57bcd5b02b5be5f305316228c59fb3f4c9 100644 (file)
@@ -3,7 +3,6 @@ imagedashedline()
 --SKIPIF--
 <?php 
        if (!function_exists('imagedashedline')) die('skip imagedashedline() not available'); 
-       if (!(imagetype() & IMG_PNG)) die('skip PNG Support is not enabled');
 ?>
 --FILE--
 <?php
index ded52da07b7151a69534e1241c1619e774b9d781..b957cce698fcaaf7ae689f627fd9c4985449f9bd 100644 (file)
@@ -3,7 +3,6 @@ imagefilledpolygon()
 --SKIPIF--
 <?php 
        if (!function_exists('imagefilledpolygon')) die('skip imagefilledpolygon() not available'); 
-       if (!(imagetype() & IMG_PNG)) die('skip PNG Support is not enabled');
 ?>
 --FILE--
 <?php