blob: de698b238332aba2b53214c0c85e8b481d266749 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--TEST--
htmlentities() test 6 (mbstring / ISO-8859-15)
--INI--
output_handler=
--SKIPIF--
<?php
if (!extension_loaded("mbstring") && ini_get("enable_dl")) {
$dlext = (substr(PHP_OS, 0, 3) == "WIN" ? ".dll" : ".so");
@dl("mbstring$dlext");
}
extension_loaded("mbstring") or die("skip mbstring not available\n");
?>
--FILE--
<?php
if (!extension_loaded("mbstring") && ini_get("enable_dl")) {
$dlext = (substr(PHP_OS, 0, 3) == "WIN" ? ".dll" : ".so");
@dl("mbstring$dlext");
}
mb_internal_encoding('ISO-8859-15');
print mb_internal_encoding()."\n";
var_dump(htmlentities("\xbc\xbd\xbe", ENT_QUOTES, ''));
?>
--EXPECT--
ISO-8859-15
string(20) "ŒœŸ"
|