mirror of
https://github.com/Mibew/handlebars.php.git
synced 2025-05-02 10:16:41 +03:00
Do not ignore I/O errors.
This commit is contained in:
parent
1b65a63b0c
commit
a7a01ed2ff
@ -83,7 +83,7 @@ class Handlebars_Cache_Disk implements Handlebars_Cache
|
|||||||
$path = $this->getPath($name);
|
$path = $this->getPath($name);
|
||||||
|
|
||||||
return (file_exists($path)) ?
|
return (file_exists($path)) ?
|
||||||
unserialize(@file_get_contents($path)) : false;
|
unserialize(file_get_contents($path)) : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -98,7 +98,7 @@ class Handlebars_Cache_Disk implements Handlebars_Cache
|
|||||||
{
|
{
|
||||||
$path = $this->getPath($name);
|
$path = $this->getPath($name);
|
||||||
|
|
||||||
@file_put_contents($path, serialize($value));
|
file_put_contents($path, serialize($value));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -112,6 +112,6 @@ class Handlebars_Cache_Disk implements Handlebars_Cache
|
|||||||
{
|
{
|
||||||
$path = $this->getPath($name);
|
$path = $this->getPath($name);
|
||||||
|
|
||||||
@unlink($path);
|
unlink($path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user