diff options
author | Guillaume Mazoyer <gmazoyer@gravitons.in> | 2017-10-30 22:30:11 +0100 |
---|---|---|
committer | Guillaume Mazoyer <gmazoyer@gravitons.in> | 2017-10-30 22:30:11 +0100 |
commit | 427439382b2ac4aa77c491d85c11fa603204fc74 (patch) | |
tree | 9b9b5b39b25b05f81ac2a73f2dd32d152f715c32 /libs/phpseclib-1.0.8/bootstrap.php | |
parent | 53a3e7436e612dedf69156bfae4960e98d1d2de7 (diff) |
Update phpseclib to 1.0.8.
Diffstat (limited to 'libs/phpseclib-1.0.8/bootstrap.php')
-rw-r--r-- | libs/phpseclib-1.0.8/bootstrap.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libs/phpseclib-1.0.8/bootstrap.php b/libs/phpseclib-1.0.8/bootstrap.php new file mode 100644 index 0000000..0da0999 --- /dev/null +++ b/libs/phpseclib-1.0.8/bootstrap.php @@ -0,0 +1,16 @@ +<?php +/** + * Bootstrapping File for phpseclib + * + * @license http://www.opensource.org/licenses/mit-license.html MIT License + */ + +if (extension_loaded('mbstring')) { + // 2 - MB_OVERLOAD_STRING + if (ini_get('mbstring.func_overload') & 2) { + throw new \UnexpectedValueException( + 'Overloading of string functions using mbstring.func_overload ' . + 'is not supported by phpseclib.' + ); + } +} |