php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76001 locale_accept_from_http normalizes both zh_TW and zh_CN to zh
Submitted: 2018-02-23 20:12 UTC Modified: 2019-09-01 10:50 UTC
Votes:3
Avg. Score:4.7 ± 0.5
Reproduced:3 of 3 (100.0%)
Same Version:3 (100.0%)
Same OS:1 (33.3%)
From: mollasadra at gmail dot com Assigned:
Status: Verified Package: intl (PECL)
PHP Version: 7.1.14 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mollasadra at gmail dot com
New email:
PHP Version: OS:

 

 [2018-02-23 20:12 UTC] mollasadra at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/locale.acceptfromhttp
---

php > echo locale_accept_from_http("zh_TW");
zh
php > echo locale_accept_from_http("zh_CN");
zh

Test script:
---------------
php > echo locale_accept_from_http("zh_TW");
zh
php > echo locale_accept_from_http("zh_CN");
zh


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-09-01 10:50 UTC] cmb@php.net
-Status: Open +Status: Verified -Package: *Languages/Translation +Package: intl
 [2019-09-01 10:50 UTC] cmb@php.net
Confirmed: <https://3v4l.org/e7HJ4>.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Sep 16 00:01:27 2019 UTC