Made skip conditions stricter.

This commit is contained in:
Moriyoshi Koizumi 2002-11-06 15:06:35 +00:00
parent b5d223adfa
commit e4460fa5a3
3 changed files with 18 additions and 3 deletions

View File

@ -1,7 +1,12 @@
--TEST--
htmlentities() test 2 (setlocale / fr_FR.ISO-8859-15)
--SKIPIF--
<?php setlocale(LC_CTYPE, "fr_FR.ISO-8859-15", "fr_FR.ISO8859-15") or die("skip setlocale() failed\n"); ?>
<?php
$result = (bool)setlocale(LC_CTYPE, "fr_FR.ISO-8859-15", "fr_FR.ISO8859-15");
if (!$result || preg_match('/ISO/i', setlocale(LC_CTYPE, 0)) === false) {
die("skip setlocale() failed\n");
}
?>
--INI--
output_handler=
mbstring.internal_encoding=pass

View File

@ -1,7 +1,12 @@
--TEST--
htmlentities() test 3 (setlocale / de_DE.ISO-8859-1)
--SKIPIF--
<?php setlocale(LC_CTYPE, "de_DE.ISO-8859-1", "de_DE.ISO8859-1") or die("skip setlocale() failed\n"); ?>
<?php
$result = (bool)setlocale(LC_CTYPE, "de_DE.ISO-8859-1", "de_DE.ISO8859-1");
if (!$result || preg_match('/ISO/i', setlocale(LC_CTYPE, 0)) === false) {
die("skip setlocale() failed\n");
}
?>
--INI--
output_handler=
mbstring.internal_encoding=pass

View File

@ -1,7 +1,12 @@
--TEST--
htmlentities() test 4 (setlocale / ja_JP.EUC-JP)
--SKIPIF--
<?php setlocale(LC_CTYPE, "ja_JP.EUC-JP", "ja_JP.eucJP") or die("skip setlocale() failed\n"); ?>
<?php
$result = (bool)setlocale(LC_CTYPE, "ja_JP.EUC-JP", "ja_JP.eucJP");
if (!$result || preg_match('/EUC[^a-zA-Z]*JP/i', setlocale(LC_CTYPE, 0)) === false) {
die("skip setlocale() failed\n");
}
?>
--INI--
output_handler=
mbstring.internal_encoding=pass