1--TEST-- 2Bug #53021 (Failure to convert numeric entities with ENT_NOQUOTES and ISO-8859-1) 3--FILE-- 4<?php 5var_dump(unpack("H*",html_entity_decode("é", ENT_QUOTES, "ISO-8859-1"))); 6echo "double quotes variations:", "\n"; 7echo html_entity_decode(""", ENT_NOQUOTES, 'UTF-8'), "\n"; 8echo html_entity_decode(""", ENT_NOQUOTES, 'UTF-8'), "\n"; 9echo html_entity_decode(""", ENT_QUOTES, 'UTF-8'), "\n"; 10echo html_entity_decode(""", ENT_QUOTES, 'UTF-8'), "\n"; 11echo html_entity_decode(""", ENT_COMPAT, 'UTF-8'), "\n"; 12echo html_entity_decode(""", ENT_COMPAT, 'UTF-8'), "\n"; 13 14echo "\nsingle quotes variations:", "\n"; 15echo html_entity_decode("'", ENT_NOQUOTES, 'UTF-8'), "\n"; 16echo html_entity_decode("'", ENT_QUOTES, 'UTF-8'), "\n"; 17echo html_entity_decode("'", ENT_COMPAT, 'UTF-8'), "\n"; 18--EXPECT-- 19array(1) { 20 [1]=> 21 string(2) "e9" 22} 23double quotes variations: 24" 25" 26" 27" 28" 29" 30 31single quotes variations: 32' 33' 34' 35