Annotation of embedaddon/php/ext/standard/tests/strings/htmlentities15.phpt, revision 1.1.1.2
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: ?>
1.1.1.2 ! misho 14: --COMMENT--
! 15: As of PHP 5.4, htmlentities() no longer makes replacements with numerical
! 16: entities. Hence, for this input there's no substitution.
1.1 misho 17: --FILE--
18: <?php
19: setlocale(LC_CTYPE, "ru_RU.koi8r", "ru_RU.KOI8-R");
20: $str = "роскошный";
21: var_dump($str, htmlentities($str, ENT_QUOTES, ''));
22: ?>
23: --EXPECT--
24: string(9) "роскошный"
1.1.1.2 ! misho 25: string(9) "роскошный"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>