This commit is contained in:
Nuno Lopes 2006-12-27 15:18:15 +00:00
parent 8c44974966
commit 1511cee1a0

View file

@ -2,8 +2,8 @@
htmlentities() test 2 (setlocale / fr_FR.ISO-8859-15) htmlentities() test 2 (setlocale / fr_FR.ISO-8859-15)
--SKIPIF-- --SKIPIF--
<?php <?php
$result = (bool)setlocale(LC_CTYPE, "fr_FR.ISO-8859-15", "fr_FR.ISO8859-15"); $result = (bool)setlocale(LC_CTYPE, "fr_FR.ISO-8859-15", "fr_FR.ISO8859-15", 'fr_FR@euro');
if (!$result || preg_match('/ISO/i', setlocale(LC_CTYPE, 0)) == 0) { if (!$result) {
die("skip setlocale() failed\n"); die("skip setlocale() failed\n");
} }
echo "warn possibly braindead libc\n"; echo "warn possibly braindead libc\n";
@ -14,7 +14,7 @@ default_charset=
mbstring.internal_encoding=none mbstring.internal_encoding=none
--FILE-- --FILE--
<?php <?php
setlocale( LC_CTYPE, "fr_FR.ISO-8859-15", "fr_FR.ISO8859-15" ); setlocale(LC_CTYPE, "fr_FR.ISO-8859-15", "fr_FR.ISO8859-15", 'fr_FR@euro');
var_dump(htmlentities("\xbc\xbd\xbe", ENT_QUOTES, '')); var_dump(htmlentities("\xbc\xbd\xbe", ENT_QUOTES, ''));
?> ?>
--EXPECT-- --EXPECT--