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

Description


    private static function isReadable($filename)
    {
        if (!$fh = @fopen($filename, 'r', true)) {
            return false;
        }

        return true;
    }

should be changed to


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

Comments

Solved in SVN r11248