summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-09-18 08:03:20 +0000
committeralecpl <alec@alec.pl>2009-09-18 08:03:20 +0000
commit98728bdd37274cb8c4cfbe96673a45c793c3cceb (patch)
treec9f075b6fdb6fc2789920b892256fc5b8ceaa550
parentf139b060b03a24894865caf46f1c2a1ceed7517d (diff)
- http://pear.php.net/bugs/bug.php?id=16624
-rw-r--r--program/lib/Auth/SASL/DigestMD5.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/Auth/SASL/DigestMD5.php b/program/lib/Auth/SASL/DigestMD5.php
index f201622a2..07007b7c9 100644
--- a/program/lib/Auth/SASL/DigestMD5.php
+++ b/program/lib/Auth/SASL/DigestMD5.php
@@ -178,10 +178,10 @@ class Auth_SASL_DigestMD5 extends Auth_SASL_Common
*/
function _getCnonce()
{
- if (file_exists('/dev/urandom') && $fd = @fopen('/dev/urandom', 'r')) {
+ if (@file_exists('/dev/urandom') && $fd = @fopen('/dev/urandom', 'r')) {
return base64_encode(fread($fd, 32));
- } elseif (file_exists('/dev/random') && $fd = @fopen('/dev/random', 'r')) {
+ } elseif (@file_exists('/dev/random') && $fd = @fopen('/dev/random', 'r')) {
return base64_encode(fread($fd, 32));
} else {