Issues

ZF-4209: Zend_Cache::isReadable() keeps file handles open

Issue Type: Improvement Created: 2008-09-05T23:00:51.000+0000 Last Updated: 2011-08-03T14:21:49.000+0000 Status: Resolved Fix version(s): - 1.6.2 (13/Oct/08)

Reporter: old of Satoru Yoshida (yoshida@zend.co.jp) Assignee: Satoru Yoshida (satoruyoshida) Tags: - Zend_Cache

Related issues: - ZF-2985

Attachments:

Description

<pre class="highlight">
    private static function isReadable($filename)
    {
        if (!$fh = @fopen($filename, 'r', true)) {
            return false;
        }

        return true;
    }

should be changed to

<pre class="highlight">
    private static function isReadable($filename)
    {
        if (!$fh = @fopen($filename, 'r', true)) {
            return false;
        }
        fclose($fh);
        return true;
    }

Comments

Posted by old of Satoru Yoshida (yoshida@zend.co.jp) on 2008-09-05T23:04:00.000+0000

Solved in SVN r11248

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