Description

My Serverprovider hasn't set the Variables used in Zend_Cache_Backend->getTmpDir() so the returned value is '/tmp'. This directory isn't writeable an so i get Errors -- i don't even use Zend_Cache, just wanted to use Zend_Date.

As a quickfix i added $_ENV['TMPDIR'] = session_save_path() but i think this should be fixed in Zend_Cache_Backend.
Probably it could be tested if /tmp is writeable and if not use session_save_path? I don't know...

Seems to work for me!
But i have to mention, that there is another problem with session (Zend_Application_Resource_Session) since 1.8.1 so i don't know if it works in my normal usage -- currently i have a workaround for session management.

why you do not only use the php function "sys_get_temp_dir" and why you check if it exists ?
The function is available since php 5.2.1 and zend framework version is 5.2.4
-> http://framework.zend.com/manual/en/…

And if the systems temp dir is not writable this is a wrong configured (or crashed) system

Posted by Thomas Weidner (thomas) on 2009-05-21T23:56:20.000+0000

The method I referred to in the second issue does use this method additionally.
BUT: You can not only refer to this method alone as it is possible that this method does not return correct informations. This is due OS dependency. Therefor additional checks are also provided which make sure that the path can be detected even if sys_* does not work properly.