Issue Type: Bug Created: 2009-05-11T07:06:04.000+0000 Last Updated: 2009-06-26T13:41:49.000+0000 Status: Resolved Fix version(s): - 1.8.2 (27/May/09)
Reporter: Markus (rockaut) Assignee: Fabien MARTY (fab) Tags: - Zend_Cache
Related issues: - ZF-6668
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...
Posted by Christiaan Kras (htbaa) on 2009-05-14T23:55:26.000+0000
I have the same issue: http://framework.zend.com/issues/browse/ZF-6668 Hadn't seen this issue yet although I did do a few searches.
Posted by Fabien MARTY (fab) on 2009-05-16T01:56:47.000+0000
just commited something better into SVN trunk
can you try it ?
(you have only to take the Backend.php file from SVN trunk)
Posted by Markus (rockaut) on 2009-05-16T06:21:25.000+0000
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.
Posted by Marc Bennewitz (private) (mabe) on 2009-05-21T15:27:40.000+0000
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.
Posted by Marc Bennewitz (private) (mabe) on 2009-05-22T05:56:59.000+0000
Are you sure? I could not find where the problem occurs ? And why it have to check first if the function exists ?
Posted by Fabien MARTY (fab) on 2009-05-24T01:37:24.000+0000
Zend_Cache works as a standalone component with php < 5.2 thanks to this additional test
merged into 1.8 branch
Posted by Christiaan Kras (htbaa) on 2009-06-09T07:35:14.000+0000
As I mentioned in ZF-6668 the getTmpDir() method fails when it decides to use the directory from the tmpname() test. The directory taken from it should be checked with _isGoodTmpDir().
Posted by Fabien MARTY (fab) on 2009-06-09T10:17:01.000+0000
just added this additionnel test into 1.8 branch and trunk (thanks)
Have you found an issue?
See the Overview section for more details.