Zend Framework

Zend_Locale-Introduction mentions a non-existing variable - HTTP_ACCEPT_LANGUAGE

Details

  • Type: Docs:  Problem Docs: Problem
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.10.4
  • Component/s: Zend_Locale
  • Labels:
    None
  • Language:
    English

Description

Zend_Locale-Introduction (http://framework.zend.com/manual/en/zend.locale.introduction.html) mentions (section "Usage of automatic Locales") the variable HTTP_ACCEPT_LANGUAGE which in fact, does not exist at all. There is a key of this name in the superglobal $_SERVER variable.

In the file Zend_Locale-Introduction.xml:
line 294 reads: <constant>HTTP_ACCEPT_LANGUAGE</constant>.
it should be: <constant>$_SERVER['HTTP_ACCEPT_LANGUAGE']</constant>.

Activity

Hide
Thomas Weidner added a comment -

Fixed with r21791

Show
Thomas Weidner added a comment - Fixed with r21791
Hide
Tomek Szmytka added a comment -

Thomas Weidner has found (and fixed) the same error on line 242 (which I overlooked in the original issue description) but the one on line 294 is still there.

Show
Tomek Szmytka added a comment - Thomas Weidner has found (and fixed) the same error on line 242 (which I overlooked in the original issue description) but the one on line 294 is still there.
Hide
Thomas Weidner added a comment -

Fixed with r21816

Show
Thomas Weidner added a comment - Fixed with r21816

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: