[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/vendor/phpseclib/phpseclib/phpseclib/ -> bootstrap.php (source)

   1  <?php
   2  /**
   3   * Bootstrapping File for phpseclib
   4   *
   5   * @license http://www.opensource.org/licenses/mit-license.html MIT License
   6   */
   7  
   8  if (extension_loaded('mbstring')) {
   9      // 2 - MB_OVERLOAD_STRING
  10      // mbstring.func_overload is deprecated in php 7.2 and removed in php 8.0.
  11      if (version_compare(PHP_VERSION, '8.0.0') < 0 && ini_get('mbstring.func_overload') & 2) {
  12          throw new \UnexpectedValueException(
  13              'Overloading of string functions using mbstring.func_overload ' .
  14              'is not supported by phpseclib.'
  15          );
  16      }
  17  }