#49733 [Opn]: mb_internal_encoding() value gets reset by parse_str()
| From: | dcz at phpbb-seo dot com | Date: | Thu, 01 Oct 2009 09:19:24 +0000 |
| Subject: | #49733 [Opn]: mb_internal_encoding() value gets reset by parse_str() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-143107@lists.php.net to get a copy of this message | ||
ID: 49733
User updated by: dcz at phpbb-seo dot com
Reported By: dcz at phpbb-seo dot com
Status: Open
Bug Type: mbstring related
Operating System: win xp
PHP Version: 5.3.0
New Comment:
Forgot to mention :
ini_set("mbstring.internal_encoding", 'UTF-8');
fixes the issue the same way it did for php5.2.10
Previous Comments:
------------------------------------------------------------------------
[2009-10-01 09:15:44] dcz at phpbb-seo dot com
Description:
------------
I just ran into the same bug with php5.3 as described here :
http://bugs.php.net/bug.php?id=48697 (php5.2.10)
parse_str still alter mb_internal_encoding
Reproduce code:
---------------
<?php
mb_internal_encoding('utf-8');
echo mb_internal_encoding()."<br/>";
parse_str('a=1&b=2');
echo mb_internal_encoding()."<br/>";
?>
Expected result:
----------------
UTF-8
UTF-8
Actual result:
--------------
UTF-8
ISO-8859-1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49733&edit=1