php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44668 Browser defaults site to "zh-Hans,zh-Hant" when accepted.
Submitted: 2008-04-08 07:20 UTC Modified: 2008-05-27 12:14 UTC
From: connect at btcentral dot org dot uk Assigned:
Status: Not a bug Package: Website problem
PHP Version: Irrelevant OS: Mac OS X, 10.5.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: connect at btcentral dot org dot uk
New email:
PHP Version: OS:

 

 [2008-04-08 07:20 UTC] connect at btcentral dot org dot uk
Description:
------------
When using the Camino Browser, under Mac OS 10.5.2, and browsing the php.net functions ie. http://www.php.net/preg_match, by default the headings are shown in the zh-Hans or zh-Hant language code (Chinese) if they are part of the browser accepted language string.

Reproduce code:
---------------
Browse the PHP.net functions site, with zh-Hans,zh-Hant as part of the accepted language string. e.g. "en-GB,en-US,en,ja,fr,de,es,it,pt,pt-PT,nl,sv,nb,da,fi,ru,pl,ko,zh-Hans,zh-Hant"

Expected result:
----------------
The site to display in the pre-determined language from IP settings, ie. English (en-GB) in this case.

Actual result:
--------------
The site displays the headings in Chinese. Removing the zh-Hans or zh-Hant language codes allow the site to default to the correct language - It seems that these language codes are not recognized correctly by the site, and therefore it sets it as the default language?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-05-27 12:14 UTC] connect at btcentral dot org dot uk
Turned out to be a browser problem, and was fixed in a later version.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 17:01:34 2025 UTC