1--TEST-- 2Bug #61116 (HTML functions use encoding, not charset) 3--FILE-- 4<?php 5echo new ReflectionFunction('htmlspecialchars'), "\n"; 6echo new ReflectionFunction('get_html_translation_table'), "\n"; 7?> 8--EXPECT-- 9Function [ <internal:standard> function htmlspecialchars ] { 10 11 - Parameters [4] { 12 Parameter #0 [ <required> string $string ] 13 Parameter #1 [ <optional> int $flags = ENT_COMPAT ] 14 Parameter #2 [ <optional> ?string $encoding = null ] 15 Parameter #3 [ <optional> bool $double_encode = true ] 16 } 17 - Return [ string ] 18} 19 20Function [ <internal:standard> function get_html_translation_table ] { 21 22 - Parameters [3] { 23 Parameter #0 [ <optional> int $table = HTML_SPECIALCHARS ] 24 Parameter #1 [ <optional> int $flags = ENT_COMPAT ] 25 Parameter #2 [ <optional> string $encoding = "UTF-8" ] 26 } 27 - Return [ array ] 28} 29