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

1.1     ! misho       1: --TEST--
        !             2: htmlentities() test 6 (mbstring / ISO-8859-15)
        !             3: --INI--
        !             4: output_handler=
        !             5: --SKIPIF--
        !             6: <?php
        !             7:        extension_loaded("mbstring") or die("skip mbstring not available\n");
        !             8:        @mb_internal_encoding('ISO-8859-15');
        !             9:        @htmlentities("\xbc\xbd\xbe", ENT_QUOTES, '');
        !            10:        if (@$php_errormsg) {
        !            11:                die("skip ISO-8859-15 chracter set is not supported on this platform.\n");
        !            12:        }
        !            13: ?>
        !            14: --FILE--
        !            15: <?php
        !            16:        mb_internal_encoding('ISO-8859-15');
        !            17:        print mb_internal_encoding()."\n";
        !            18:        var_dump(htmlentities("\xbc\xbd\xbe", ENT_QUOTES, ''));
        !            19: ?>
        !            20: --EXPECT--
        !            21: ISO-8859-15
        !            22: string(20) "&OElig;&oelig;&Yuml;"

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