php-src/ext/standard/tests/strings/htmlentities02.phpt

25 lines
692 B
Plaintext
Raw Normal View History

2002-10-24 21:11:41 +00:00
--TEST--
htmlentities() test 2 (setlocale / fr_FR.ISO-8859-15)
--SKIPIF--
2002-11-06 15:06:35 +00:00
<?php
2006-12-27 15:18:15 +00:00
$result = (bool)setlocale(LC_CTYPE, "fr_FR.ISO-8859-15", "fr_FR.ISO8859-15", 'fr_FR@euro');
if (!$result) {
2002-11-06 15:06:35 +00:00
die("skip setlocale() failed\n");
}
echo "warn possibly braindead libc\n";
2002-11-06 15:06:35 +00:00
?>
2002-10-24 21:11:41 +00:00
--INI--
2002-11-03 08:37:59 +00:00
output_handler=
default_charset=
mbstring.internal_encoding=none
2002-10-24 21:11:41 +00:00
--FILE--
<?php
2006-12-27 15:18:15 +00:00
setlocale(LC_CTYPE, "fr_FR.ISO-8859-15", "fr_FR.ISO8859-15", 'fr_FR@euro');
2002-10-24 21:11:41 +00:00
var_dump(htmlentities("\xbc\xbd\xbe", ENT_QUOTES, ''));
?>
--EXPECT--
string(20) "&OElig;&oelig;&Yuml;"
2008-02-24 02:47:36 +00:00
--UEXPECTF--
Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d
unicode(24) "&frac14;&frac12;&frac34;"