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