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