php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25518 LAST_LANG cookie setting when entering site from search engine
Submitted: 2003-09-12 13:40 UTC Modified: 2003-09-12 13:48 UTC
From: mike at mondragon dot cc Assigned:
Status: Closed Package: Website problem
PHP Version: 4.3.3 OS:
Private report: No CVE-ID: None
 [2003-09-12 13:40 UTC] mike at mondragon dot cc
Description:
------------
Somehow I entered the php.net site from a link that had the browser language prefernce set to pr_BR (Brazillian?) I think from the google.com website.  Thereafter all the manual documentation was translated to pr_BR.  However my browser is
Mozilla 1.2.1
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225
The browser language preference is set to "en-US".
I could not find a way to make the site change its language display.
Mozilla 1.2.1

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225
Only after I edited my cookies.txt file entry for
.php.net LAST_LANG "EN" did the site display the manual in english.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-12 13:45 UTC] goba@php.net
If you click on a link which is formatted like http://php.net/pt_BR/echo or http://php.net/manual/pt_BR/function.echo.php then your last language will be pt_BR. How would we be possible to determie whether you clicked on a link by accident or you truly meant it?

BTW as this is the last language used, you would have been able to go into the English tree by using the language chooser available on all pages. You would have been able to choose English at docs.php (linked from every page at the top), and you would have been able to edit the URL by hand, and go to an English page.

What is the bug in our website code???
 [2003-09-12 13:48 UTC] mike at mondragon dot cc
Goba explained how to navigate the site correctly.  Thanks for the quick feedback.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Jun 16 03:00:02 2026 UTC