|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesphp-src (last revision 2012-02-16 23:54 UTC by vrana@php.net)Pull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2012-02-16 23:54 UTC] vrana@php.net
[2015-04-19 03:46 UTC] stas@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: stas
[2015-04-19 03:46 UTC] stas@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 08 07:00:01 2025 UTC |
Description: ------------ HTML functions use encoding, not charset. E.g. ISO-8859-1 is both character set and encoding but UTF-8 is encoding of Unicode character set. There's also missing arg_info in get_html_translation_table(). I've already fixed Manual. Test script: --------------- Reflection::export(new ReflectionFunction('htmlspecialchars')); Reflection::export(new ReflectionFunction('get_html_translation_table')); Expected result: ---------------- Function [ <internal:standard> function htmlspecialchars ] { - Parameters [4] { Parameter #0 [ <required> $string ] Parameter #1 [ <optional> $quote_style ] Parameter #2 [ <optional> $encoding ] Parameter #3 [ <optional> $double_encode ] } } Function [ <internal:standard> function get_html_translation_table ] { - Parameters [2] { Parameter #0 [ <optional> $table ] Parameter #1 [ <optional> $quote_style ] Parameter #2 [ <optional> $encoding ] } } Actual result: -------------- Function [ <internal:standard> function htmlspecialchars ] { - Parameters [4] { Parameter #0 [ <required> $string ] Parameter #1 [ <optional> $quote_style ] Parameter #2 [ <optional> $charset ] Parameter #3 [ <optional> $double_encode ] } } Function [ <internal:standard> function get_html_translation_table ] { - Parameters [2] { Parameter #0 [ <optional> $table ] Parameter #1 [ <optional> $quote_style ] } }