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