diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-01-12 22:24:08 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-01-12 22:24:08 +0100 |
commit | 575836eb24be7ddbbb2d03e5c5de95f1a6b9c81e (patch) | |
tree | 03a548d59b3bba779e69d2ef688d243b8f9f5748 /PHP_DW.php | |
parent | ce3ac0671bce24b0af715de77bc1f9b311c4b11f (diff) |
disable PHP warning when fopen fails
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'PHP_DW.php')
-rw-r--r-- | PHP_DW.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -13,7 +13,7 @@ class PHP_DW { } private function __incr_count($filename) { - $fh = fopen($this->base_count . '/' . $filename . '.cnt', "a+"); + $fh = @fopen($this->base_count . '/' . $filename . '.cnt', "a+"); if (is_resource($fh) and flock($fh, LOCK_EX)) { rewind($fh); |