2010-10-08 16:19:58 +00:00
|
|
|
--TEST--
|
|
|
|
Bug #53021 (Failure to convert numeric entities with ENT_NOQUOTES and ISO-8859-1)
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
var_dump(unpack("H*",html_entity_decode("é", ENT_QUOTES, "ISO-8859-1")));
|
2010-10-08 17:27:19 +00:00
|
|
|
echo "double quotes variations:", "\n";
|
|
|
|
echo html_entity_decode(""", ENT_NOQUOTES, 'UTF-8'), "\n";
|
|
|
|
echo html_entity_decode(""", ENT_NOQUOTES, 'UTF-8'), "\n";
|
|
|
|
echo html_entity_decode(""", ENT_QUOTES, 'UTF-8'), "\n";
|
|
|
|
echo html_entity_decode(""", ENT_QUOTES, 'UTF-8'), "\n";
|
|
|
|
echo html_entity_decode(""", ENT_COMPAT, 'UTF-8'), "\n";
|
|
|
|
echo html_entity_decode(""", ENT_COMPAT, 'UTF-8'), "\n";
|
|
|
|
|
|
|
|
echo "\nsingle quotes variations:", "\n";
|
|
|
|
echo html_entity_decode("'", ENT_NOQUOTES, 'UTF-8'), "\n";
|
|
|
|
echo html_entity_decode("'", ENT_QUOTES, 'UTF-8'), "\n";
|
|
|
|
echo html_entity_decode("'", ENT_COMPAT, 'UTF-8'), "\n";
|
2010-10-08 16:19:58 +00:00
|
|
|
--EXPECT--
|
|
|
|
array(1) {
|
|
|
|
[1]=>
|
|
|
|
string(2) "e9"
|
|
|
|
}
|
2010-10-08 17:27:19 +00:00
|
|
|
double quotes variations:
|
|
|
|
"
|
|
|
|
"
|
|
|
|
"
|
|
|
|
"
|
|
|
|
"
|
|
|
|
"
|
|
|
|
|
|
|
|
single quotes variations:
|
|
|
|
'
|
|
|
|
'
|
|
|
|
'
|