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