#45722 [Opn->Asn]: mb_check_encoding() crashes
| From: | jani@php.net | Date: | Tue, 05 Aug 2008 12:13:10 +0000 |
| Subject: | #45722 [Opn->Asn]: mb_check_encoding() crashes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-127623@lists.php.net to get a copy of this message | ||
ID: 45722
Updated by: jani@php.net
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