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

Issue Type: Improvement Created: 2007-10-17T06:36:00.000+0000 Last Updated: 2008-03-21T16:25:41.000+0000 Status: Resolved Fix version(s): - 1.5.0 (17/Mar/08)

Reporter: Deniz Adrian (deniz.adrian) Assignee: Fabien MARTY (fab) Tags: - Zend_Cache

Related issues: Attachments: - File.php.diff


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"!?


Posted by Deniz Adrian (deniz.adrian) on 2007-10-17T06:36:36.000+0000

can we pre-format here? ;-)

Posted by Deniz Adrian (deniz.adrian) on 2007-10-17T06:40:46.000+0000

attaching a diff

Posted by Fabien MARTY (fab) on 2007-10-24T13:30:13.000+0000

fixed with a refactoring

Have you found an issue?

See the Overview section for more details.


© 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.