Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.10.5
-
Fix Version/s: 1.10.7
-
Component/s: Zend_Locale
-
Labels:None
Description
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);
Closing as non-issue
This exception just notes that the browser does not send an language header.
And that in your environment even the system's locale can not be found. This exception is only thrown when no locale can be retrieved, wether within the browser, nor the environment. And when additionally the default fallback locale has been erased manually.
So the generic problem is not ISAPI but that even php's setlocale() method does not return any value and that default has been erased manually.