ZF-11019: [Zend_Cache_Backend_Static] Caching URIs with "0" as the file name
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