bootstrap.php 432 B

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