php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67193 mb_regex_encoding not changeable from php.ini
Submitted: 2014-05-03 17:10 UTC Modified: 2014-05-05 08:43 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: bugzilla77 at gmail dot com Assigned:
Status: Duplicate Package: PHP options/info functions
PHP Version: 5.6.0beta2 OS: Win 7
Private report: No CVE-ID: None
 [2014-05-03 17:10 UTC] bugzilla77 at gmail dot com
Description:
------------
Set php.ini:

default_charset = "UTF-8"

(this is default in php 5.6)

Test script:
---------------
<?=mb_regex_encoding()?>

Expected result:
----------------
UTF-8

---

Only way to change mb_regex to UTF-8 is:

mbstring.internal_encoding = "UTF-8"

but it is DEPRECATED!!!

Actual result:
--------------
EUC-JP

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-05-03 23:49 UTC] requinix@php.net
-Status: Open +Status: Duplicate
 [2014-05-05 08:43 UTC] yohgaki@php.net
It can be changed, but it must be UTF-8 by default. I'll look into it.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 02:01:25 2019 UTC