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