From 49e6e41fb49c87138cd25fe4d8e9b167932eb597 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Tue, 10 Nov 2015 12:00:30 +0000 Subject: [PATCH] Update random_compat to master. Clarifies strings, Merges [35587] upstream. See #34409, #28633 Built from https://develop.svn.wordpress.org/trunk@35600 git-svn-id: http://core.svn.wordpress.org/trunk@35564 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/random_compat/random.php | 4 ++-- wp-includes/random_compat/random_bytes_com_dotnet.php | 2 +- wp-includes/random_compat/random_bytes_dev_urandom.php | 2 +- wp-includes/random_compat/random_bytes_libsodium.php | 2 +- wp-includes/random_compat/random_bytes_mcrypt.php | 2 +- wp-includes/random_compat/random_bytes_openssl.php | 2 +- wp-includes/version.php | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/wp-includes/random_compat/random.php b/wp-includes/random_compat/random.php index 6b28d4672e..d1f7555afa 100644 --- a/wp-includes/random_compat/random.php +++ b/wp-includes/random_compat/random.php @@ -110,8 +110,8 @@ if (PHP_VERSION_ID < 70000) { DIRECTORY_SEPARATOR === '/' && PHP_VERSION_ID >= 50300 ) || - // Windows with PHP >= 5.3.4 - PHP_VERSION_ID >= 50401 // Modification from upstream, see #34409 + // Windows with PHP >= 5.4.1 + PHP_VERSION_ID >= 50401 ) ) { // See random_bytes_openssl.php diff --git a/wp-includes/random_compat/random_bytes_com_dotnet.php b/wp-includes/random_compat/random_bytes_com_dotnet.php index c0ae639a8d..0a781f4efa 100644 --- a/wp-includes/random_compat/random_bytes_com_dotnet.php +++ b/wp-includes/random_compat/random_bytes_com_dotnet.php @@ -72,6 +72,6 @@ function random_bytes($bytes) * If we reach here, PHP has failed us. */ throw new Exception( - 'PHP failed to generate random data.' + 'Could not gather sufficient random data' ); } diff --git a/wp-includes/random_compat/random_bytes_dev_urandom.php b/wp-includes/random_compat/random_bytes_dev_urandom.php index 5606dbbec9..aebcafcf7d 100644 --- a/wp-includes/random_compat/random_bytes_dev_urandom.php +++ b/wp-includes/random_compat/random_bytes_dev_urandom.php @@ -132,6 +132,6 @@ function random_bytes($bytes) * If we reach here, PHP has failed us. */ throw new Exception( - 'PHP failed to generate random data.' + 'Error reading from source device' ); } diff --git a/wp-includes/random_compat/random_bytes_libsodium.php b/wp-includes/random_compat/random_bytes_libsodium.php index 796ba6a626..938cac9290 100644 --- a/wp-includes/random_compat/random_bytes_libsodium.php +++ b/wp-includes/random_compat/random_bytes_libsodium.php @@ -79,6 +79,6 @@ function random_bytes($bytes) * If we reach here, PHP has failed us. */ throw new Exception( - 'PHP failed to generate random data.' + 'Could not gather sufficient random data' ); } diff --git a/wp-includes/random_compat/random_bytes_mcrypt.php b/wp-includes/random_compat/random_bytes_mcrypt.php index 8524c52245..5a1b688f60 100644 --- a/wp-includes/random_compat/random_bytes_mcrypt.php +++ b/wp-includes/random_compat/random_bytes_mcrypt.php @@ -67,6 +67,6 @@ function random_bytes($bytes) * If we reach here, PHP has failed us. */ throw new Exception( - 'PHP failed to generate random data.' + 'Could not gather sufficient random data' ); } diff --git a/wp-includes/random_compat/random_bytes_openssl.php b/wp-includes/random_compat/random_bytes_openssl.php index db05e1fe3c..3e12d3da59 100644 --- a/wp-includes/random_compat/random_bytes_openssl.php +++ b/wp-includes/random_compat/random_bytes_openssl.php @@ -71,6 +71,6 @@ function random_bytes($bytes) * If we reach here, PHP has failed us. */ throw new Exception( - 'PHP failed to generate random data.' + 'Could not gather sufficient random data' ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 2158192eb8..c6c4f71abf 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-beta3-35599'; +$wp_version = '4.4-beta3-35600'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.