Permalink
Browse files

Suppress warnings from is_readable() when using open_basedir configur…

…ation
  • Loading branch information...
1 parent a6bb3d8 commit 74738fb2108ed6d80161d1954dc3ce522e7b17b2 @rickard2 rickard2 committed Jan 19, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 CryptoProvider.php
View
@@ -20,7 +20,7 @@ protected function getRandomHexStringFromDevRandom($length) {
static $sources = array('/dev/urandom', '/dev/random');
foreach ($sources as $source) {
- if (is_readable($source)) {
+ if (@is_readable($source)) {
return bin2hex(file_get_contents($source, false, null, -1, $length / 2));
}
}

0 comments on commit 74738fb

Please sign in to comment.