Issue Details (XML | Word | Printable)

Key: ZF-8993
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Marc Bennewitz (private)
Reporter: Maciej Wilgucki
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Zend Framework

Zend_Cache_Backend_Static doesn't work on Windows

Created: 28/Jan/10 05:32 AM   Updated: 20/Jul/10 11:56 AM   Resolved: 20/Jul/10 11:56 AM
Component/s: Zend_Cache
Affects Version/s: 1.10.0
Fix Version/s: 1.10.7

Time Tracking:
Not Specified

File Attachments: 1. Text File Static.php.patch (1 kB)

Issue Links:
Dependency
 


 Description  « Hide

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.



Ramon Henrique Ornelas added a comment - 05/Feb/10 09:10 AM

Reassigned for @PadraicB


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.


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.


Marc Bennewitz (private) added a comment - 20/Jul/10 12:55 AM

As of fixing bug ZF-9642 - Please test if this bug was fixed, too?


Maxell added a comment - 20/Jul/10 09:38 AM

I can confirm that this bug is also fixed.


Marc Bennewitz (private) added a comment - 20/Jul/10 11:56 AM

fixed with ZF-9642