Since a rewrite in October 2010,
html_entity_decode() doesn't decode invalid numeric entities anymore in PHP 5.4, as a consequence:
html_entity_decode('', ENT_QUOTES, 'UTF-8');
'' on PHP 5.4 and a single character
chr(14) on PHP 5.3.
Is this a good thing? Should we ask PHP core to reconsider?
One effect of this is that one of our
filter_xss() test fails, because something like
FAILED: [[SimpleTest]]: [PHP 5.5 MySQL] Unable to apply patch decode_invalid_numeric_entities-1210798-28.patch. Unable to apply patch. See the log in the details link for more information. View