bootstrap.php 616 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Bootstrapping File for phpseclib
  4. *
  5. * composer isn't a requirement for phpseclib 2.0 but this file isn't really required
  6. * either. it's a bonus for those using composer but if you're not phpseclib will
  7. * still work
  8. *
  9. * @license http://www.opensource.org/licenses/mit-license.html MIT License
  10. */
  11. if (extension_loaded('mbstring')) {
  12. // 2 - MB_OVERLOAD_STRING
  13. if (ini_get('mbstring.func_overload') & 2) {
  14. throw new UnexpectedValueException(
  15. 'Overloading of string functions using mbstring.func_overload ' .
  16. 'is not supported by phpseclib.'
  17. );
  18. }
  19. }