1--TEST--
2htmlentities() test 8 (mbstring / EUC-JP)
3--INI--
4output_handler=
5internal_encoding=EUC-JP
6--SKIPIF--
7<?php
8    extension_loaded("mbstring") or die("skip mbstring not available\n");
9--FILE--
10<?php
11    mb_internal_encoding('EUC-JP');
12    print mb_internal_encoding()."\n";
13    var_dump(htmlentities("\xa1\xa2\xa1\xa3\xa1\xa4", ENT_QUOTES, ''));
14?>
15--EXPECTF--
16EUC-JP
17
18Notice: htmlentities(): Only basic entities substitution is supported for multi-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
19string(6) "������"
20