1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-28 08:10:14 +02:00

fix passing invalid parametrs to flock. #51

This commit is contained in:
Elan Ruusamäe
2014-03-19 12:11:15 +02:00
parent 9231aed49f
commit 27b4f758bc

View File

@@ -98,6 +98,9 @@ class Minify_Cache_File {
{
if ($this->_locking) {
$fp = fopen($this->_path . '/' . $id, 'rb');
if (!$fp) {
return false;
}
flock($fp, LOCK_SH);
$ret = stream_get_contents($fp);
flock($fp, LOCK_UN);