Description

When Zend_Locale::setDefault() is called, it internally calls self::_prepareLocale() with the given $locale, which then sets the static self::$_auto variable if it has not already been set. In setting self::$_auto, _prepareLocale() calls Zend_Locale::getDefault(), which returns the value of the PREVIOUS default (the one before setDefault() was called). Since the self::$_auto variable never changes once set, all subsequent calls to _prepapreLocale() will cause the old default to be used should it fall back to "auto". Thus, calling Zend_Locale::setDefault() has no effect on the default when "auto" is used.