Issues

ZF-11019: [Zend_Cache_Backend_Static] Caching URIs with "0" as the file name

Issue Type: Bug Created: 2011-02-02T00:58:37.000+0000 Last Updated: 2011-02-10T12:03:23.000+0000 Status: Closed Fix version(s): - 1.11.4 (03/Mar/11)

Reporter: Micha? Bachowski (mib) Assignee: Marc Bennewitz (private) (mabe) Tags: - Zend_Cache

Related issues: Attachments:

Description

When caching URIs with "0" (0-digit) as the file name (eg. example.com/a/b/0) Zend_Cache_Backend_Static changes file name to the one set with "index_filename" property. Is`s because "empty" function is used in order to determine whether file name is set (thus being considered as directory index):

if(empty($fileName)) { $fileName = $this->_options['index_filename']; }

Code below fixes this issue:

if (strlen($fileName) === 0 || '/' === $fileName) { $fileName = $this->_options['index_filename']; }

Comments

Posted by Marc Bennewitz (private) (mabe) on 2011-02-07T13:00:24.000+0000

fix commited to trunk (r23691)

Can you please test if this solves your problem - thanks

Posted by Marc Bennewitz (private) (mabe) on 2011-02-10T12:01:39.000+0000

merged to trunk in r23692

Posted by Marc Bennewitz (private) (mabe) on 2011-02-10T12:02:57.000+0000

sorry - wrong comment

Posted by Marc Bennewitz (private) (mabe) on 2011-02-10T12:03:23.000+0000

merged to 1.11 branch

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