#40685 [Bgs]: '&&&' => '&&' at mb_decode_numericentity
| From: | dq2 at compass dot jp | Date: | Thu, 01 Mar 2007 20:59:32 +0000 |
| Subject: | #40685 [Bgs]: '&&&' => '&&' at mb_decode_numericentity | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-109773@lists.php.net to get a copy of this message | ||
ID: 40685
User updated by: dq2 at compass dot jp
Reported By: dq2 at compass dot jp
Status: Bogus
Bug Type: mbstring related
Operating System: winXP
PHP Version: 4.4.6
New Comment:
thank you, i know '&&&' is not numeric entity,
but i find strange to reduce '&'.
and sorry expected and actuary vice versa
Previous Comments:
------------------------------------------------------------------------
[2007-03-01 20:52:48] tony2001@php.net
"&&&" is not a numeric entity.
------------------------------------------------------------------------
[2007-03-01 20:49:18] dq2 at compass dot jp
Description:
------------
mb_decode_numericentity converts '&&&' string to '&&'
Reproduce code:
---------------
$s = '&';
echo mb_decode_numericentity($s, array(0, 0x10FFFF, 0, 0xFFFFFF),
'utf-8'). "\n";
$s = '&&&';
echo mb_decode_numericentity($s, array(0, 0x10FFFF, 0, 0xFFFFFF),
'utf-8'). "\n";
Expected result:
----------------
(none)
&& (where is a '&'?)
Actual result:
--------------
&
&&&
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40685&edit=1