Zend Framework

Zend_Cache_Backend_File's "save" method returns if cache_dir doesn't exist or cannot be written

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.0.2
  • Fix Version/s: 1.5.0
  • Component/s: Zend_Cache
  • Labels:
    None

Description

Zend_Cache_Backend_File logs an error when the target cache directory doesn't exist or cannot be written, but still continues execution, where it tries to "fopen", and maybe "mkdir" and "chmod".

Correct me if I'm wrong, but if the target directory cannot be accessed, this function can savely immediately "return false"!?

Activity

Hide
Deniz Adrian added a comment -

can we pre-format here?

Show
Deniz Adrian added a comment - can we pre-format here?
Hide
Deniz Adrian added a comment -

attaching a diff

Show
Deniz Adrian added a comment - attaching a diff
Hide
Fabien MARTY added a comment -

fixed with a refactoring

Show
Fabien MARTY added a comment - fixed with a refactoring

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: