diff options
author | Guillaume Mazoyer <gmazoyer@gravitons.in> | 2018-01-28 22:44:40 +0100 |
---|---|---|
committer | Guillaume Mazoyer <gmazoyer@gravitons.in> | 2018-01-28 22:44:40 +0100 |
commit | b741c281c34ef6577c17aba8cbc6ce73c539cda2 (patch) | |
tree | 643ea0205ecb046a20bcf347c2171c176d0454f6 /libs/phpseclib-1.0.9/bootstrap.php | |
parent | d96efc646e7050b3169ef899ec75ba299dce2a51 (diff) |
Update phpseclib to 1.0.9.
Diffstat (limited to 'libs/phpseclib-1.0.9/bootstrap.php')
-rw-r--r-- | libs/phpseclib-1.0.9/bootstrap.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libs/phpseclib-1.0.9/bootstrap.php b/libs/phpseclib-1.0.9/bootstrap.php new file mode 100644 index 0000000..95d5d6f --- /dev/null +++ b/libs/phpseclib-1.0.9/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.'
+ );
+ }
+}
|