mirror of
https://github.com/php/php-src.git
synced 2026-03-27 09:42:22 +01:00
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
26 lines
752 B
PHP
26 lines
752 B
PHP
--TEST--
|
|
Bug #40685 (mb_decode_numericentity() removes '&' in the string)
|
|
--EXTENSIONS--
|
|
mbstring
|
|
--FILE--
|
|
<?php
|
|
$map = array(0, 0x10FFFF, 0, 0xFFFFFF);
|
|
var_dump(mb_decode_numericentity('&', $map, 'UTF-8'));
|
|
var_dump(mb_decode_numericentity('&&&', $map, 'UTF-8'));
|
|
var_dump(mb_decode_numericentity('&#', $map, 'UTF-8'));
|
|
var_dump(mb_decode_numericentity('&#x', $map, 'UTF-8'));
|
|
var_dump(mb_decode_numericentity('=', $map, 'UTF-8'));
|
|
var_dump(mb_decode_numericentity('=', $map, 'UTF-8'));
|
|
var_dump(mb_decode_numericentity('=', $map, 'UTF-8'));
|
|
var_dump(mb_decode_numericentity('=', $map, 'UTF-8'));
|
|
?>
|
|
--EXPECT--
|
|
string(1) "&"
|
|
string(3) "&&&"
|
|
string(2) "&#"
|
|
string(3) "&#x"
|
|
string(4) "="
|
|
string(5) "="
|
|
string(1) "="
|
|
string(1) "="
|