summaryrefslogtreecommitdiff
path: root/libs/phpseclib-1.0.7/bootstrap.php
diff options
context:
space:
mode:
authorGuillaume Mazoyer <gmazoyer@gravitons.in>2017-07-01 14:25:12 +0200
committerGuillaume Mazoyer <gmazoyer@gravitons.in>2017-07-01 14:25:12 +0200
commitc6a7bca4e0150df0f72070eafe364c04d1b63f6a (patch)
treeb46283830cc36fe27f13cc2ca49895c8e5bb8b9a /libs/phpseclib-1.0.7/bootstrap.php
parentad863464292eb6b77eb386c6a72cff9a6ba55b88 (diff)
Update phpseclib to 1.0.7.
Diffstat (limited to 'libs/phpseclib-1.0.7/bootstrap.php')
-rw-r--r--libs/phpseclib-1.0.7/bootstrap.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/libs/phpseclib-1.0.7/bootstrap.php b/libs/phpseclib-1.0.7/bootstrap.php
new file mode 100644
index 0000000..0da0999
--- /dev/null
+++ b/libs/phpseclib-1.0.7/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.'
+ );
+ }
+}