ZF-12214: Zend_Cache_Backend_File - improve error messages for cache_dir

Issue Type: Patch Created: 2012-05-18T15:54:24.000+0000 Last Updated: 2012-05-31T19:02:09.000+0000 Status: Resolved Fix version(s): Reporter: Martin Hujer (mhujer) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Cache

  • FixForZF1.12

Related issues: Attachments: - Zend_Cache_Frontend_File.patch


When Zend_Cache_Backend_File can't use specified directory, it throws an exception with message "cache_dir must be a directory". I think it would be much better if it said, which path is not directory. (Just try to Google "cache_dir must be a directory").

Attached patch changes that behaviour - the message is now ??"Message: cache_dir "./tmp/" must be a directory"??


Posted by Rob Allen (rob) on 2012-05-31T19:02:09.000+0000

Fixed in SVN r24844.

Have you found an issue?

See the Overview section for more details.


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

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