ZF-10005: Zend_Locale getenv(HTTP_ACCEPT_LANGUAGE) Windows ISAPI - Autodetection of Locale has been failed!
Does Zend_Locale fully support PHP running on Windows IIS ISAPI mode?
"getenv(HTTP_ACCEPT_LANGUAGE)" returns null with php running on Windows IIS ISAPI mode which causes the following Exception:
Fatal error: Uncaught exception 'Zend_Locale_Exception' with message 'Autodetection of Locale has been failed!'
Would it be better if getenv() can fall back to using $_SERVER variables in case getenv is not available?
To reproduce, simply create a file with the following (include Zend/Locale or Autoloader first of course):
$locale = new Zend_Locale(Zend_Locale::BROWSER);