1--TEST--
2htmlentities() test 16 (mbstring / cp1251)
3--INI--
4output_handler=
5internal_encoding=cp1251
6--SKIPIF--
7<?php
8	extension_loaded("mbstring") or die("skip mbstring not available\n");
9?>
10--FILE--
11<?php
12$str = "\x88\xa9\xf0\xee\xf1\xea\xee\xf8\xed\xfb\xe9";
13var_dump(bin2hex($str), bin2hex(htmlentities($str, ENT_QUOTES, '')));
14var_dump(htmlentities($str, ENT_QUOTES | ENT_HTML5, ''));
15?>
16===DONE===
17--EXPECT--
18string(22) "88a9f0eef1eaeef8edfbe9"
19string(42) "266575726f3b26636f70793bf0eef1eaeef8edfbe9"
20string(58) "&euro;&copy;&rcy;&ocy;&scy;&kcy;&ocy;&shcy;&ncy;&ycy;&jcy;"
21===DONE===
22