Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions src/Storage/Adapter/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -1274,36 +1274,6 @@ protected function getFileSpec($normalizedKey)
return $this->lastFileSpec;
}

/**
* Read info file
*
* @param string $file
* @param bool $nonBlocking Don't block script if file is locked
* @param bool $wouldblock The optional argument is set to TRUE if the lock would block
* @return array|bool The info array or false if file wasn't found
* @throws Exception\RuntimeException
*/
protected function readInfoFile($file, $nonBlocking = false, & $wouldblock = null)
{
if (!file_exists($file)) {
return false;
}

$content = $this->getFileContent($file, $nonBlocking, $wouldblock);
if ($nonBlocking && $wouldblock) {
return false;
}

ErrorHandler::start();
$ifo = unserialize($content);
$err = ErrorHandler::stop();
if (!is_array($ifo)) {
throw new Exception\RuntimeException("Corrupted info file '{$file}'", 0, $err);
}

return $ifo;
}

/**
* Read a complete file
*
Expand Down