1--TEST--
2Test get_html_translation_table() function: htmlentities/HTML 4/ISO-8859-1 (bug #64011)
3--FILE--
4<?php
5
6function so($a,$b) { return ord($a) - ord($b); }
7
8$table = HTML_ENTITIES;
9$tt = get_html_translation_table($table, ENT_COMPAT, "ISO-8859-1");
10uksort( $tt, 'so' );
11var_dump( count($tt) );
12print_r( $tt );
13echo "Done\n";
14
15?>
16--EXPECT--
17int(100)
18Array
19(
20    ["] => &quot;
21    [&] => &amp;
22    [<] => &lt;
23    [>] => &gt;
24    [�] => &nbsp;
25    [�] => &iexcl;
26    [�] => &cent;
27    [�] => &pound;
28    [�] => &curren;
29    [�] => &yen;
30    [�] => &brvbar;
31    [�] => &sect;
32    [�] => &uml;
33    [�] => &copy;
34    [�] => &ordf;
35    [�] => &laquo;
36    [�] => &not;
37    [�] => &shy;
38    [�] => &reg;
39    [�] => &macr;
40    [�] => &deg;
41    [�] => &plusmn;
42    [�] => &sup2;
43    [�] => &sup3;
44    [�] => &acute;
45    [�] => &micro;
46    [�] => &para;
47    [�] => &middot;
48    [�] => &cedil;
49    [�] => &sup1;
50    [�] => &ordm;
51    [�] => &raquo;
52    [�] => &frac14;
53    [�] => &frac12;
54    [�] => &frac34;
55    [�] => &iquest;
56    [�] => &Agrave;
57    [�] => &Aacute;
58    [�] => &Acirc;
59    [�] => &Atilde;
60    [�] => &Auml;
61    [�] => &Aring;
62    [�] => &AElig;
63    [�] => &Ccedil;
64    [�] => &Egrave;
65    [�] => &Eacute;
66    [�] => &Ecirc;
67    [�] => &Euml;
68    [�] => &Igrave;
69    [�] => &Iacute;
70    [�] => &Icirc;
71    [�] => &Iuml;
72    [�] => &ETH;
73    [�] => &Ntilde;
74    [�] => &Ograve;
75    [�] => &Oacute;
76    [�] => &Ocirc;
77    [�] => &Otilde;
78    [�] => &Ouml;
79    [�] => &times;
80    [�] => &Oslash;
81    [�] => &Ugrave;
82    [�] => &Uacute;
83    [�] => &Ucirc;
84    [�] => &Uuml;
85    [�] => &Yacute;
86    [�] => &THORN;
87    [�] => &szlig;
88    [�] => &agrave;
89    [�] => &aacute;
90    [�] => &acirc;
91    [�] => &atilde;
92    [�] => &auml;
93    [�] => &aring;
94    [�] => &aelig;
95    [�] => &ccedil;
96    [�] => &egrave;
97    [�] => &eacute;
98    [�] => &ecirc;
99    [�] => &euml;
100    [�] => &igrave;
101    [�] => &iacute;
102    [�] => &icirc;
103    [�] => &iuml;
104    [�] => &eth;
105    [�] => &ntilde;
106    [�] => &ograve;
107    [�] => &oacute;
108    [�] => &ocirc;
109    [�] => &otilde;
110    [�] => &ouml;
111    [�] => &divide;
112    [�] => &oslash;
113    [�] => &ugrave;
114    [�] => &uacute;
115    [�] => &ucirc;
116    [�] => &uuml;
117    [�] => &yacute;
118    [�] => &thorn;
119    [�] => &yuml;
120)
121Done
122