/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/mbstring/tests/mb_encode_numericentity_large_ints.phpt
16 строк
474 B
Gina Peter Banyard
ext/mbstring: move unsigned 32 bit integer tests to a new test (#12891)
07 дек 2023, 23:19
Не верифицирован
07 дек 2023, 23:19
7684a3d
Код
Авторство
О чём код?
--TEST-- mb_encode_numericentity() with 0xFFFFFFFF in conversion map --EXTENSIONS-- mbstring --SKIPIF-- <?php if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); ?> --FILE-- <?php // Regression test; the old implementation could only emit hexadecimal entities with about 5 digits $convmap = [0xffffffff, 0xffffffff, 0x540a0af7, 0x5a485054]; echo "13: " . mb_encode_numericentity("\xFF", $convmap, "ASCII", true) . "\n"; ?> --EXPECT-- 13: �