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 ["] => " 21 [&] => & 22 [<] => < 23 [>] => > 24 [�] => 25 [�] => ¡ 26 [�] => ¢ 27 [�] => £ 28 [�] => ¤ 29 [�] => ¥ 30 [�] => ¦ 31 [�] => § 32 [�] => ¨ 33 [�] => © 34 [�] => ª 35 [�] => « 36 [�] => ¬ 37 [�] => ­ 38 [�] => ® 39 [�] => ¯ 40 [�] => ° 41 [�] => ± 42 [�] => ² 43 [�] => ³ 44 [�] => ´ 45 [�] => µ 46 [�] => ¶ 47 [�] => · 48 [�] => ¸ 49 [�] => ¹ 50 [�] => º 51 [�] => » 52 [�] => ¼ 53 [�] => ½ 54 [�] => ¾ 55 [�] => ¿ 56 [�] => À 57 [�] => Á 58 [�] => Â 59 [�] => Ã 60 [�] => Ä 61 [�] => Å 62 [�] => Æ 63 [�] => Ç 64 [�] => È 65 [�] => É 66 [�] => Ê 67 [�] => Ë 68 [�] => Ì 69 [�] => Í 70 [�] => Î 71 [�] => Ï 72 [�] => Ð 73 [�] => Ñ 74 [�] => Ò 75 [�] => Ó 76 [�] => Ô 77 [�] => Õ 78 [�] => Ö 79 [�] => × 80 [�] => Ø 81 [�] => Ù 82 [�] => Ú 83 [�] => Û 84 [�] => Ü 85 [�] => Ý 86 [�] => Þ 87 [�] => ß 88 [�] => à 89 [�] => á 90 [�] => â 91 [�] => ã 92 [�] => ä 93 [�] => å 94 [�] => æ 95 [�] => ç 96 [�] => è 97 [�] => é 98 [�] => ê 99 [�] => ë 100 [�] => ì 101 [�] => í 102 [�] => î 103 [�] => ï 104 [�] => ð 105 [�] => ñ 106 [�] => ò 107 [�] => ó 108 [�] => ô 109 [�] => õ 110 [�] => ö 111 [�] => ÷ 112 [�] => ø 113 [�] => ù 114 [�] => ú 115 [�] => û 116 [�] => ü 117 [�] => ý 118 [�] => þ 119 [�] => ÿ 120) 121Done 122