mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
Made skip conditions stricter.
This commit is contained in:
parent
b5d223adfa
commit
e4460fa5a3
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user