Issues

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

Issue Type: Bug Created: 2010-09-05T12:00:40.000+0000 Last Updated: 2010-09-16T12:34:34.000+0000 Status: Resolved Fix version(s): - 1.11.1 (30/Nov/10)

Reporter: Maxell (maxell) Assignee: Marc Bennewitz (private) (mabe) Tags: - Zend_Cache

Related issues: Attachments:

Description

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

<pre class="highlight">
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:

<pre class="highlight">
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

Posted by Marc Bennewitz (private) (mabe) on 2010-09-16T12:34:33.000+0000

fixed in trunk r22949 & r22950

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts