Zend Framework

Zend_Cache_Backend_Static doesn't work on Windows

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.10.0
  • Fix Version/s: 1.10.7
  • Component/s: Zend_Cache
  • Labels:
    None

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.

Issue Links

Activity

Hide
Ramon Henrique Ornelas added a comment -

Reassigned for @PadraicB

Show
Ramon Henrique Ornelas added a comment - Reassigned for @PadraicB
Hide
Maxell added a comment - - 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.

Show
Maxell added a comment - - 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.
Hide
Ramon Henrique Ornelas added a comment -

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.

Show
Ramon Henrique Ornelas added a comment - 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.
Hide
Marc Bennewitz (private) added a comment -

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

Show
Marc Bennewitz (private) added a comment - As of fixing bug ZF-9642 - Please test if this bug was fixed, too?
Hide
Maxell added a comment -

I can confirm that this bug is also fixed.

Show
Maxell added a comment - I can confirm that this bug is also fixed.
Hide
Marc Bennewitz (private) added a comment -

fixed with ZF-9642

Show
Marc Bennewitz (private) added a comment - fixed with ZF-9642

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: