summaryrefslogtreecommitdiff
path: root/libs/phpseclib-1.0.6/bootstrap.php
diff options
context:
space:
mode:
authorGuillaume Mazoyer <gmazoyer@gravitons.in>2017-05-21 21:59:39 +0200
committerGuillaume Mazoyer <gmazoyer@gravitons.in>2017-05-21 21:59:39 +0200
commit3192c105afad5be3d0ef8459a56a4898ef98e4f4 (patch)
tree1219d74bcd6c0498ca10080b6e551c457ad6a468 /libs/phpseclib-1.0.6/bootstrap.php
parent9f5be2a2d5f29e85dac45c8551aa7cada651b0bb (diff)
Update phpseclib to 1.0.6.
Diffstat (limited to 'libs/phpseclib-1.0.6/bootstrap.php')
-rw-r--r--libs/phpseclib-1.0.6/bootstrap.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/libs/phpseclib-1.0.6/bootstrap.php b/libs/phpseclib-1.0.6/bootstrap.php
new file mode 100644
index 0000000..0da0999
--- /dev/null
+++ b/libs/phpseclib-1.0.6/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.'
+ );
+ }
+}