ZF-8993: Zend_Cache_Backend_Static doesn't work on Windows
Description
When I'm trying to use this backend i get two errors. First is triggered by mkdir function in Zend/Cache/Backend/Static.php on line 244. The directory id prepended by / and looks like this: /C:\wamp\www\projectname... Second error is triggered by file_put_contents function in Zend/Cache/Backend/Static.php on line 209 because file name is invalid - C:\wamp\www\projectname\html./\x120html.
Comments
Posted by Ramon Henrique Ornelas (ramon) on 2010-02-05T09:10:37.000+0000
Reassigned for @PadraicB
Posted by Maxell (maxell) on 2010-04-03T14:18:53.000+0000
Added patch that fixes the static cache issue on Windows. Mkdir can also recursively create directories, so in the patch I used that and removed the protected createDirectoriesFor method.
Posted by Ramon Henrique Ornelas (ramon) on 2010-05-09T21:14:46.000+0000
I agree with the patch Static.php.patch.
It makes no sense to try to create directories with method $this->_createDirectoriesFor($pathName) line 226, already that in line 225 used the function www.php.net/realpath" rel="nofollow">realpath case no exists the directory the function return false.
Posted by Marc Bennewitz (private) (mabe) on 2010-07-20T00:55:40.000+0000
As of fixing bug ZF-9642 - Please test if this bug was fixed, too?
Posted by Maxell (maxell) on 2010-07-20T09:38:18.000+0000
I can confirm that this bug is also fixed.
Posted by Marc Bennewitz (private) (mabe) on 2010-07-20T11:56:53.000+0000
fixed with ZF-9642