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.
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.
Maxell added a comment - 03/Apr/10 02:18 PM - edited
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.
Maxell added a comment - 03/Apr/10 02:18 PM - edited 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.
It makes no sense to try to create directories with method $this->_createDirectoriesFor($pathName) line 226, already that in line 225 used the function realpath case no exists the directory the function return false.
Ramon Henrique Ornelas added a comment - 09/May/10 09:14 PM 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 realpath case no exists the directory the function return false.
Reassigned for @PadraicB