ID: 45722
User updated by: estacuentanolamiro at gmail dot com
Reported By: estacuentanolamiro at gmail dot com
Status: Open
Bug Type: mbstring related
Operating System: Ubuntu 6.06 LTS server
PHP Version: 5.2.6
New Comment:
Sorry, correct reproduce code:
$text = "&· ASDF ASDF ASDF ASDF ASDF ASDF ASDF";
if( !mb_check_encoding($text,'HTML-ENTITIES') ) {
$text = htmlentities($text);
}
echo $text;
Previous Comments:
------------------------------------------------------------------------
[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