Do not run tests if iconv extension is unavailable.

This commit is contained in:
Ilia Alshanetsky 2005-10-25 14:22:56 +00:00
parent a0c8d5d80a
commit 9490f1c847
9 changed files with 9 additions and 9 deletions

View File

@ -2,7 +2,7 @@
Bug #16069
--SKIPIF--
<?php
/* include( 'skipif.inc' ); */
include( 'skipif.inc' );
if (@iconv('CP932', 'EUC-JP//TRANSLIT', "\x87\x6d")=='') {
die("skip CP932 to EUC-JP translit not available\n");
}

View File

@ -1,7 +1,7 @@
--TEST--
EUC-JP to ISO-2022-JP
--SKIPIF--
<?php /* include('skipif.inc'); */ ?>
<?php include('skipif.inc'); ?>
--INI--
error_reporting=2039
--FILE--

View File

@ -1,7 +1,7 @@
--TEST--
EUC-JP to SJIS
--SKIPIF--
<?php /* include('skipif.inc'); */ ?>
<?php include('skipif.inc'); ?>
--INI--
error_reporting=2039
--FILE--

View File

@ -1,7 +1,7 @@
--TEST--
EUC-JP to UTF8
--SKIPIF--
<?php /* include('skipif.inc'); */ ?>
<?php include('skipif.inc'); ?>
--INI--
error_reporting=2039
--FILE--

View File

@ -1,7 +1,7 @@
--TEST--
iconv() test 1
--SKIPIF--
<?php /* include('skipif.inc'); */ ?>
<?php include('skipif.inc'); ?>
--INI--
error_reporting=2039
--FILE--

View File

@ -2,7 +2,7 @@
iconv() test 2 (UCS4BE to ASCII)
--SKIPIF--
<?php
/* include('skipif.inc'); */
include('skipif.inc');
if (@iconv("ascii","UCS-4LE", "abcd") == '') {
die("skip conversion to UCS-4LE not supported");
}

View File

@ -1,7 +1,7 @@
--TEST--
ob_iconv_handler()
--SKIPIF--
<?php /* include('skipif.inc'); */ ?>
<?php include('skipif.inc'); ?>
--INI--
error_reporting=2039
--FILE--

View File

@ -2,7 +2,7 @@
Translit failure
--SKIPIF--
<?php
/* include('skipif.inc'); */
include('skipif.inc');
( ICONV_IMPL != "libiconv" ) and die("skip ICONV_IMPL != \"libiconv\"");
?>
--INI--

View File

@ -2,7 +2,7 @@
Translit UTF-8 quotes
--SKIPIF--
<?php
/* include('skipif.inc'); */
include('skipif.inc');
( ICONV_IMPL != "libiconv" ) and die("skip ICONV_IMPL != \"libiconv\"");
?>
--INI--