1--TEST--
2htmlentities() / html_entity_decode() #8592 - #9002 table test
3--FILE--
4<?php
5$tests = array(
6	array(8853, '&oplus;',  "e28a95"),
7	array(8855, '&otimes;', "e28a97"),
8	array(8869, '&perp;',   "e28aa5"),
9	array(8901, '&sdot;',   "e28b85"),
10	array(8968, '&lceil;',  "e28c88"),
11	array(8969, '&rceil;',  "e28c89"),
12	array(8970, '&lfloor;', "e28c8a"),
13	array(8971, '&rfloor;', "e28c8b"),
14	array(9001, '&lang;',   "e28ca9"),
15	array(9002, '&rang;',   "e28caa")
16);
17
18foreach ($tests as $test) {
19	var_dump(htmlentities(pack('H*', $test[2]), ENT_QUOTES, 'UTF-8'));
20}
21
22foreach ($tests as $test) {
23	list(,$result) = unpack('H6', html_entity_decode($test[1], ENT_QUOTES, 'UTF-8'));
24	var_dump($result);
25}
26?>
27--EXPECT--
28string(7) "&oplus;"
29string(8) "&otimes;"
30string(6) "&perp;"
31string(6) "&sdot;"
32string(7) "&lceil;"
33string(7) "&rceil;"
34string(8) "&lfloor;"
35string(8) "&rfloor;"
36string(6) "&lang;"
37string(6) "&rang;"
38string(6) "e28a95"
39string(6) "e28a97"
40string(6) "e28aa5"
41string(6) "e28b85"
42string(6) "e28c88"
43string(6) "e28c89"
44string(6) "e28c8a"
45string(6) "e28c8b"
46string(6) "e28ca9"
47string(6) "e28caa"
48