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