Annotation of embedaddon/php/ext/standard/tests/strings/bug53021.phpt, revision 1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>