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] [EMAIL PROTECTED] "&&&" 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