Remove superfluous SKIPIF sections of always available constants

This commit is contained in:
Gabriel Caruso 2018-07-30 00:53:28 -03:00
parent 4371945b8b
commit d88bbcea82
No known key found for this signature in database
GPG key ID: D93D6E258EFC438A
11 changed files with 3 additions and 61 deletions

View file

@ -1,9 +1,5 @@
--TEST-- --TEST--
Bug #72278 (getimagesize returning FALSE on valid jpg) Bug #72278 (getimagesize returning FALSE on valid jpg)
--SKIPIF--
<?php
if (!defined('IMAGETYPE_JPEG')) die('skip images of type JPEG not supported');
?>
--FILE-- --FILE--
<?php <?php
define('FILENAME', __DIR__ . DIRECTORY_SEPARATOR . 'bug72278.jpg'); define('FILENAME', __DIR__ . DIRECTORY_SEPARATOR . 'bug72278.jpg');

View file

@ -1,11 +1,5 @@
--TEST-- --TEST--
Test getimagesize() function : basic functionality - load APP info from jpeg. Test getimagesize() function : basic functionality - load APP info from jpeg.
--SKIPIF--
<?php
if (!defined("IMAGETYPE_JPEG")) {
die("skip jpeg format is not available");
}
?>
--FILE-- --FILE--
<?php <?php
/* Prototype : proto array getimagesize(string imagefile [, array info]) /* Prototype : proto array getimagesize(string imagefile [, array info])

View file

@ -1,11 +1,5 @@
--TEST-- --TEST--
GetImageSize() for tiff format with big-endian (aka Motorola, aka MM) ordering GetImageSize() for tiff format with big-endian (aka Motorola, aka MM) ordering
--SKIPIF--
<?php
if (!defined("IMAGETYPE_TIFF_MM")) {
die("skip tiff_mm file format is not available");
}
?>
--FILE-- --FILE--
<?php <?php
/* Prototype : proto array getimagesize(string imagefile [, array info]) /* Prototype : proto array getimagesize(string imagefile [, array info])

View file

@ -1,11 +1,5 @@
--TEST-- --TEST--
Test getimagesize() function : usage variations - unexpected type for arg 2 Test getimagesize() function : usage variations - unexpected type for arg 2
--SKIPIF--
<?php
if (!defined("IMAGETYPE_JPEG")) {
die("skip jpeg format is not available");
}
?>
--FILE-- --FILE--
<?php <?php
/* Prototype : proto array getimagesize(string imagefile [, array info]) /* Prototype : proto array getimagesize(string imagefile [, array info])

View file

@ -1,11 +1,5 @@
--TEST-- --TEST--
GetImageSize() for wbmp format GetImageSize() for wbmp format
--SKIPIF--
<?php
if (!defined("IMAGETYPE_WBMP")) {
die("skip wbmp file format is not available");
}
?>
--FILE-- --FILE--
<?php <?php
/* Prototype : proto array getimagesize(string imagefile [, array info]) /* Prototype : proto array getimagesize(string imagefile [, array info])

View file

@ -1,11 +1,5 @@
--TEST-- --TEST--
GetImageSize() for xbm format GetImageSize() for xbm format
--SKIPIF--
<?php
if (!defined("IMAGETYPE_XBM")) {
die("skip xbm file format is not available");
}
?>
--FILE-- --FILE--
<?php <?php
/* Prototype : proto array getimagesize(string imagefile [, array info]) /* Prototype : proto array getimagesize(string imagefile [, array info])

View file

@ -2,8 +2,8 @@
Test image_type_to_mime_type() function : usage variations - Passing IMAGETYPE_ICO and IMAGETYPE_SWC Test image_type_to_mime_type() function : usage variations - Passing IMAGETYPE_ICO and IMAGETYPE_SWC
--SKIPIF-- --SKIPIF--
<?php <?php
if (!defined("IMAGETYPE_SWC") || !defined("IMAGETYPE_ICO") || !extension_loaded('zlib')) { if (!defined("IMAGETYPE_SWC") || !extension_loaded('zlib')) {
die("skip zlib extension is not available or IMAGETYPE_SWC/IMAGETYPE_ICO is not defined "); die("skip zlib extension is not available or IMAGETYPE_SWC is not defined ");
} }
?> ?>
--FILE-- --FILE--

View file

@ -1,11 +1,5 @@
--TEST-- --TEST--
Official blowfish tests (http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/glibc/crypt_blowfish/wrapper.c) Official blowfish tests (http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/glibc/crypt_blowfish/wrapper.c)
--SKIPIF--
<?php
if (!defined("CRYPT_BLOWFISH")) {
die("SKIP crypt()-blowfish is not available");
}
?>
--FILE-- --FILE--
<?php <?php

View file

@ -1,11 +1,5 @@
--TEST-- --TEST--
Test Blowfish crypt() with invalid rounds Test Blowfish crypt() with invalid rounds
--SKIPIF--
<?php
if (!defined("CRYPT_BLOWFISH")) {
die("SKIP crypt()-blowfish is not available");
}
?>
--FILE-- --FILE--
<?php <?php

View file

@ -1,11 +1,5 @@
--TEST-- --TEST--
crypt() SHA-256 crypt() SHA-256
--SKIPIF--
<?php
if (!defined("CRYPT_SHA256")) {
die("SKIP crypt()-sha256 is not available");
}
?>
--FILE-- --FILE--
<?php <?php

View file

@ -1,11 +1,5 @@
--TEST-- --TEST--
crypt() SHA-512 crypt() SHA-512
--SKIPIF--
<?php
if (!defined("CRYPT_SHA512")) {
die("SKIP crypt()-sha512 is not available");
}
?>
--FILE-- --FILE--
<?php <?php