Annotation of embedaddon/php/ext/standard/tests/strings/htmlentities16.phpt, revision 1.1.1.2
1.1 misho 1: --TEST--
2: htmlentities() test 16 (mbstring / cp1251)
3: --INI--
4: output_handler=
1.1.1.2 ! misho 5: mbstring.internal_encoding=cp1251
1.1 misho 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";
1.1.1.2 ! misho 13: var_dump(bin2hex($str), bin2hex(htmlentities($str, ENT_QUOTES, '')));
! 14: var_dump(htmlentities($str, ENT_QUOTES | ENT_HTML5, ''));
1.1 misho 15: ?>
16: ===DONE===
17: --EXPECT--
18: string(22) "88a9f0eef1eaeef8edfbe9"
1.1.1.2 ! misho 19: string(42) "266575726f3b26636f70793bf0eef1eaeef8edfbe9"
! 20: string(58) "€©роскошный"
1.1 misho 21: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>