Annotation of embedaddon/php/ext/standard/tests/strings/htmlentities15.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: htmlentities() test 15 (setlocale / KOI8-R)
3: --INI--
4: output_handler=
5: default_charset=
6: mbstring.internal_encoding=pass
7: --SKIPIF--
8: <?php
9: $result = (bool)setlocale(LC_CTYPE, "ru_RU.koi8r", "ru_RU.KOI8-R");
10: if (!$result || preg_match('/koi8/i', setlocale(LC_CTYPE, 0)) == 0) {
11: die("skip setlocale() failed\n");
12: }
13: ?>
14: --FILE--
15: <?php
16: setlocale(LC_CTYPE, "ru_RU.koi8r", "ru_RU.KOI8-R");
17: $str = "роскошный";
18: var_dump($str, htmlentities($str, ENT_QUOTES, ''));
19: ?>
20: --EXPECT--
21: string(9) "роскошный"
22: string(63) "роскошный"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>