Annotation of embedaddon/php/ext/mbstring/tests/bug40685.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #40685 (mb_decode_numericentity() removes '&' in the string)
        !             3: --SKIPIF--
        !             4: <?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
        !             5: --FILE--
        !             6: <?php
        !             7: $map = array(0, 0x10FFFF, 0, 0xFFFFFF);
        !             8: var_dump(mb_decode_numericentity('&', $map, 'UTF-8'));
        !             9: var_dump(mb_decode_numericentity('&&&', $map, 'UTF-8'));
        !            10: var_dump(mb_decode_numericentity('&#', $map, 'UTF-8'));
        !            11: var_dump(mb_decode_numericentity('&#61', $map, 'UTF-8'));
        !            12: var_dump(mb_decode_numericentity('&#61;', $map, 'UTF-8'));
        !            13: ?>
        !            14: --EXPECTF--
        !            15: string(1) "&"
        !            16: string(3) "&&&"
        !            17: string(2) "&#"
        !            18: string(4) "&#61"
        !            19: string(1) "="
        !            20: 

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