From a208566e6717ee1c86d8e92029672d85c222389f Mon Sep 17 00:00:00 2001 From: nacin Date: Fri, 26 Feb 2010 07:25:10 +0000 Subject: [PATCH] Suppress potential is_readable() warning. Fixes #12148 props ocean90 git-svn-id: http://svn.automattic.com/wordpress/trunk@13429 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-phpass.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class-phpass.php b/wp-includes/class-phpass.php index 2b89a2f5cd..6d77a1cce9 100644 --- a/wp-includes/class-phpass.php +++ b/wp-includes/class-phpass.php @@ -55,7 +55,7 @@ class PasswordHash { function get_random_bytes($count) { $output = ''; - if (is_readable('/dev/urandom') && + if ( @is_readable('/dev/urandom') && ($fh = @fopen('/dev/urandom', 'rb'))) { $output = fread($fh, $count); fclose($fh);