WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/23/2015 04:21:01 AM (6 years ago)
Author:
dd32
Message:

Update to Random_Compat 1.0.9.
This update includes fixes for Windows support & libSodium support, and removes the Throwable Polyfill due to PHP7 incompatibilities.

Fixes #28633

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/random_compat/byte_safe_strings.php

    r34922 r35365  
    2828
    2929if (!function_exists('RandomCompat_strlen')) {
    30     if (defined('MB_OVERLOAD_STRING') && ini_get('mbstring.func_overload') & MB_OVERLOAD_STRING) {
     30    if (
     31        defined('MB_OVERLOAD_STRING') &&
     32        ini_get('mbstring.func_overload') & MB_OVERLOAD_STRING
     33    ) {
    3134        /**
    3235         * strlen() implementation that isn't brittle to mbstring.func_overload
     
    7578
    7679if (!function_exists('RandomCompat_substr')) {
    77     if (defined('MB_OVERLOAD_STRING') && ini_get('mbstring.func_overload') & MB_OVERLOAD_STRING) {
     80    if (
     81        defined('MB_OVERLOAD_STRING') &&
     82        ini_get('mbstring.func_overload') & MB_OVERLOAD_STRING
     83    ) {
    7884        /**
    7985         * substr() implementation that isn't brittle to mbstring.func_overload
Note: See TracChangeset for help on using the changeset viewer.