summaryrefslogtreecommitdiff
path: root/libs/phpseclib-1.0.9/bootstrap.php
diff options
context:
space:
mode:
authorGuillaume Mazoyer <gmazoyer@gravitons.in>2018-01-28 22:44:40 +0100
committerGuillaume Mazoyer <gmazoyer@gravitons.in>2018-01-28 22:44:40 +0100
commitb741c281c34ef6577c17aba8cbc6ce73c539cda2 (patch)
tree643ea0205ecb046a20bcf347c2171c176d0454f6 /libs/phpseclib-1.0.9/bootstrap.php
parentd96efc646e7050b3169ef899ec75ba299dce2a51 (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.php16
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.'
+ );
+ }
+}