com php-src: Remove superfluous checks for PNG support: ext/gd/tests/bug72604.phpt ext/gd/tests/imagecopyresampled_ba sic.phpt
ext/gd/tests/imagedashedline_basic.phpt ext/ gd/tests/imagefilledpolygon_basic.phpt
| From: | Christoph Michael Becker | Date: | Tue, 18 Oct 2016 12:17:37 +0000 |
| Subject: | com php-src: Remove superfluous checks for PNG support: ext/gd/tests/bug72604.phpt ext/gd/tests/imagecopyresampled_ba sic.phpt ext/gd/tests/imagedashedline_basic.phpt ext/ gd/tests/imagefilledpolygon_basic.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-95200@lists.php.net to get a copy of this message | ||
Commit: 371f41250cc906b7c71d2f994dec7c8eb9ab11c5
Author: Christoph M. Becker <cmbecker69@gmx.de> Tue, 18 Oct 2016 14:16:46 +0200
Parents: dfc811611fc0c23ab917cc431a654b5f73ee7616
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=371f41250cc906b7c71d2f994dec7c8eb9ab11c5
Log:
Remove superfluous checks for PNG support
PNG support is required to build ext/gd, so there's no need to check
for it in the tests.
Changed paths:
M ext/gd/tests/bug72604.phpt
M ext/gd/tests/imagecopyresampled_basic.phpt
M ext/gd/tests/imagedashedline_basic.phpt
M ext/gd/tests/imagefilledpolygon_basic.phpt
Diff:
diff --git a/ext/gd/tests/bug72604.phpt b/ext/gd/tests/bug72604.phpt
index f9592c0..5cbaba7 100644
--- a/ext/gd/tests/bug72604.phpt
+++ b/ext/gd/tests/bug72604.phpt
@@ -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
diff --git a/ext/gd/tests/imagecopyresampled_basic.phpt b/ext/gd/tests/imagecopyresampled_basic.phpt
index fd96ab6..edf7ba6 100644
--- a/ext/gd/tests/imagecopyresampled_basic.phpt
+++ b/ext/gd/tests/imagecopyresampled_basic.phpt
@@ -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
diff --git a/ext/gd/tests/imagedashedline_basic.phpt b/ext/gd/tests/imagedashedline_basic.phpt
index be65af6..35525f5 100644
--- a/ext/gd/tests/imagedashedline_basic..phpt
+++ b/ext/gd/tests/imagedashedline_basic.phpt
@@ -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
diff --git a/ext/gd/tests/imagefilledpolygon_basic.phpt b/ext/gd/tests/imagefilledpolygon_basic.phpt
index ded52da..b957cce 100644
--- a/ext/gd/tests/imagefilledpolygon_basic.phpt
+++ b/ext/gd/tests/imagefilledpolygon_basic.phpt
@@ -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