php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34139 PHP locale is set without user authentication.
Submitted: 2005-08-15 18:43 UTC Modified: 2005-08-15 20:02 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: atruong at askjeeves dot com Assigned:
Status: Not a bug Package: Website problem
PHP Version: Irrelevant OS: Windows XP
Private report: No CVE-ID: None
 [2005-08-15 18:43 UTC] atruong at askjeeves dot com
Description:
------------
Searching for mail() function on www.php.net, the page displayed is Chinese, not English.

Reproduce code:
---------------
1.) http://www.php.net
2.) Enter "mail" in the "Search For" input box
3.) Choose "function list" from the dropdown
4.) Click on the right-arrow "submit" button

--> mail() function page defaults to Chinese "hk" version.

Expected result:
----------------
English version of mail() function page should be displayed.

Actual result:
--------------
LIII.Mail ?q?l?缆
mail() ??A?i?H?ǰe?q?l?l?�� >

?ؿ?
ezmlm_hash -- ?p?⥘ EZMLM ?ҭn?ϥΪ? hash ??ȼ/DT >
mail -- ?e?X?l?��T >

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-15 18:49 UTC] atruong at askjeeves dot com
This bug was reformulated from http://bugs.php.net/?id=34138.
 [2005-08-15 19:33 UTC] goba@php.net
I was unable to reproduce this with either 

  http://php.net/en/mail

or 

  http://php.net/en/function.mail

If you have a Chineese locale set, then all manual pages should display as such, not just the mail page. Otherwise this might be a mirror specific problem, in which case we need information on what mirror site you end up after you submit that search on www.php.net. 
 [2005-08-15 19:44 UTC] atruong at askjeeves dot com
This bug has changed yet again! I updated the Summary to reflect my current understanding of the problem.

Reproduce
=========

1. Do a Google search "php.ini mail() SMTP"
http://www.google.com/search?hl=en&lr=&q=php.ini+mail%28%29+SMTP&btnG=Search

2. Click on the second result,
"PHP: Mail Functions - Manual" http://www.php.net/mail

3.) Go "HUH?!" what the heck is this.

4.) Abandon Google and, in the same browser window, manually type   h t t p : / / w w w . p h p . n e t   into the address bar.

5.) Search for the mail() function as usual.

--> You are now stuck in the "hk" locale because of an errant click on a Google search result. Oops. 

--> To get out of "hk" mode, the user must click on "Documentation" and then "English" and then the user is in "en" mode.

Note
====
The user is very confused if they ever stumble across links on the web to another locale and get stuck. Users should opt-in to persistant locale settings.

Thanks!
Annette.
:)
 [2005-08-15 19:46 UTC] atruong at askjeeves dot com
After submitting the previous note, I can't reproduce. 

Anyways, I'm going to stop trying to reproduce this bug and leave it as an open ended "something is screwed up with locales" as I stumbled upon this by accident and it really threw me off for a while until I manually got out of the "hk" locale.

Thanks,
Annette.
:)
 [2005-08-15 20:02 UTC] goba@php.net
We first try to guess your language, and then seeing that you "accepted" it, use your last used language afterwards. Anytime you change your language, that one will persist, until you change your preferred language again.

See http://php.net/my

You also have the option to change your language anytime you are on a manual page (there is a dropdown at the top).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 04:01:31 2024 UTC