mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
16 lines
474 B
PHP
16 lines
474 B
PHP
--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: �
|