php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22502 Wrong language in search results
Submitted: 2003-03-02 03:43 UTC Modified: 2003-03-02 15:41 UTC
From: mike at silvernetwork dot net Assigned: goba (profile)
Status: Closed Package: Website problem
PHP Version: 4.3.1 OS: Mac OS 9
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mike at silvernetwork dot net
New email:
PHP Version: OS:

 

 [2003-03-02 03:43 UTC] mike at silvernetwork dot net
when I search PHP.net I get results in japanese, so all I see is "???????". My browser Mozilla 1.2.1 Is sending en-us language, not Japanese. Please fix this.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-02 05:10 UTC] goba@php.net
OK, I see the problem (not the solution :), and working on it...
 [2003-03-02 05:39 UTC] goba@php.net
OK the actual problem is this: the php.net pages are cached on several proxy servers and public caches. Every non-manual page (all pages where the language cannot be set explicitly from the request) uses the accept-language header, the mirror's default language or the "en" language in this priority order.

As we had no dynamic language detection before, this was not a problem. But now accept-language can be different for users (well, this is the whole point of that). So pages go out to caches with the language code used by the "first" guy who have downloaded the page, and you get that page from the cache. This is a problem on all non-manual pages.

On manual pages, the language used in the form is always the  language of the manual you see, so there is no problem there.

I think the solution will be to not pass the language in the search form on non-manual pages, as it can be extracted from the environment without that value (your accept-language is not changed between filling and submitting the form).

I'll look into this today a bit later...
 [2003-03-02 10:12 UTC] goba@php.net
OK, I have removed the langauge parameter from the search form. Now it only appears in case it was explicitly specified in the request (via a documentation URL or search query). So your problem should be fixed. Please repoen this bug, if you feel otherwise.
 [2003-03-02 15:41 UTC] mike at silvernetwork dot net
Thanks. I am now getting results in english.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Jun 18 02:00:01 2026 UTC