Issues

ZF-10421: Zend_Cache_Backend_Static doesn't set the directory umask correctly

Description

The following code in Zend_Cache_Backend_Static causes the problem (starts on line 264):


if ( !is_dir($path)
  && !@mkdir($path, $this->_options['cache_directory_umask'], true)) {
    $lastErr = error_get_last();
    Zend_Cache::throwException("Can't create directory: {$lastErr['message']}");
}

Fix:


if ( !is_dir($path)
  && !@mkdir($path, $this->_octdec($this->_options['cache_directory_umask']), true)) {
    $lastErr = error_get_last();
    Zend_Cache::throwException("Can't create directory: {$lastErr['message']}");
}

Comments

fixed in trunk r22949 & r22950