mirror of
https://github.com/php/php-src.git
synced 2026-04-24 16:38:25 +02:00
8d7911ef56
Use ?T instead of "T or NULL".
29 lines
783 B
PHP
29 lines
783 B
PHP
--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 $quote_style ]
|
|
Parameter #2 [ <optional> ?string $encoding ]
|
|
Parameter #3 [ <optional> bool $double_encode ]
|
|
}
|
|
- Return [ string ]
|
|
}
|
|
|
|
Function [ <internal:standard> function get_html_translation_table ] {
|
|
|
|
- Parameters [3] {
|
|
Parameter #0 [ <optional> int $table ]
|
|
Parameter #1 [ <optional> int $quote_style ]
|
|
Parameter #2 [ <optional> string $encoding ]
|
|
}
|
|
- Return [ array ]
|
|
}
|