ZF-6668: Zend_Locale_Data fails creating cache when tmp directory is not writeable
On our production server it isn't possible for a user to create and write files to the /tmp/ directory.
However, Zend_Locale_Data::getList() tries to create a cache by itself at line 293 when no cache is present. When there's no cache present it uses Zend_Cache_Backend::getTmpDir() to request a directory to write in. When the /tmp/ directory isn't writeable by users an exception gets thrown by Zend_Cache at line 208: cache_dir must be a directory
In 1.7.5 Zend_Locale_Data only used a cache when it was set and didn't try to create one by default. The only way for me to get this to work is setting $_ENV['TMPDIR'] to a custom directory. With multiple websites deployed this is not very desirable.
I think Zend_Locale_Data (and perhaps other components?) shouldn't try to create a cache by default in a temp directory, as you never know if it's actually writeable. Another solution could be that Zend_Cache_Backend checks if the directory from Zend_Cache_Backend::getTmpDir() is actually writeable. If not cancel the creation of the cache and just continue. No need to warn about it either I think.
The priority of this ticket might be a bit too high, but currently I can't savely upgrade to 1.8.1.