ID: 45722 Updated by: [EMAIL PROTECTED] Reported By: estacuentanolamiro at gmail dot com -Status: Open +Status: Assigned Bug Type: mbstring related Operating System: * PHP Version: 5.2CVS, 5.3CVS, 6CVS (2008-08-05) -Assigned To: +Assigned To: moriyoshi New Comment:
Moriyoshi, verified with all branches. Previous Comments: ------------------------------------------------------------------------ [2008-08-05 11:54:36] estacuentanolamiro at gmail dot com Sorry, correct reproduce code: $text = "&· ASDF ASDF ASDF ASDF ASDF ASDF ASDF"; if( !mb_check_encoding($text,'HTML-ENTITIES') ) { $text = htmlentities($text); } echo $text; ------------------------------------------------------------------------ [2008-08-05 11:51:30] estacuentanolamiro at gmail dot com Description: ------------ mb_check_encoding segmentation fault Reproduce code: --------------- $text = "&· ASDF ASDF ASDF ASDF ASDF ASDF ASDF"; if( mb_check_encoding($text,'HTML-ENTITIES') ) { $text = htmlentities($text); } echo $text; Expected result: ---------------- string Actual result: -------------- Nothing, segmentation fault. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45722&edit=1