mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Remove superfluous SKIPIF sections of always available constants
This commit is contained in:
parent
4371945b8b
commit
d88bbcea82
11 changed files with 3 additions and 61 deletions
|
@ -1,9 +1,5 @@
|
|||
--TEST--
|
||||
Bug #72278 (getimagesize returning FALSE on valid jpg)
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!defined('IMAGETYPE_JPEG')) die('skip images of type JPEG not supported');
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
define('FILENAME', __DIR__ . DIRECTORY_SEPARATOR . 'bug72278.jpg');
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
--TEST--
|
||||
Test getimagesize() function : basic functionality - load APP info from jpeg.
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!defined("IMAGETYPE_JPEG")) {
|
||||
die("skip jpeg format is not available");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
/* Prototype : proto array getimagesize(string imagefile [, array info])
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
--TEST--
|
||||
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--
|
||||
<?php
|
||||
/* Prototype : proto array getimagesize(string imagefile [, array info])
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
--TEST--
|
||||
Test getimagesize() function : usage variations - unexpected type for arg 2
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!defined("IMAGETYPE_JPEG")) {
|
||||
die("skip jpeg format is not available");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
/* Prototype : proto array getimagesize(string imagefile [, array info])
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
--TEST--
|
||||
GetImageSize() for wbmp format
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!defined("IMAGETYPE_WBMP")) {
|
||||
die("skip wbmp file format is not available");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
/* Prototype : proto array getimagesize(string imagefile [, array info])
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
--TEST--
|
||||
GetImageSize() for xbm format
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!defined("IMAGETYPE_XBM")) {
|
||||
die("skip xbm file format is not available");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
/* Prototype : proto array getimagesize(string imagefile [, array info])
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
Test image_type_to_mime_type() function : usage variations - Passing IMAGETYPE_ICO and IMAGETYPE_SWC
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!defined("IMAGETYPE_SWC") || !defined("IMAGETYPE_ICO") || !extension_loaded('zlib')) {
|
||||
die("skip zlib extension is not available or IMAGETYPE_SWC/IMAGETYPE_ICO is not defined ");
|
||||
if (!defined("IMAGETYPE_SWC") || !extension_loaded('zlib')) {
|
||||
die("skip zlib extension is not available or IMAGETYPE_SWC is not defined ");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
--TEST--
|
||||
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--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
--TEST--
|
||||
Test Blowfish crypt() with invalid rounds
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!defined("CRYPT_BLOWFISH")) {
|
||||
die("SKIP crypt()-blowfish is not available");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
--TEST--
|
||||
crypt() SHA-256
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!defined("CRYPT_SHA256")) {
|
||||
die("SKIP crypt()-sha256 is not available");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
--TEST--
|
||||
crypt() SHA-512
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!defined("CRYPT_SHA512")) {
|
||||
die("SKIP crypt()-sha512 is not available");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue