MadelineProto/src/BigIntegor.php

21 lines
532 B
PHP
Raw Normal View History

<?php
namespace phpseclib\Math;
2018-06-22 13:28:33 +02:00
if (PHP_MAJOR_VERSION < 7 && !(class_exists('\\Phar') && \Phar::running())) {
throw new \Exception('MadelineProto requires php 7 to run');
}
2018-06-22 13:28:33 +02:00
if (defined('HHVM_VERSION')) {
$engines = [['PHP64', ['OpenSSL']], ['BCMath', ['OpenSSL']], ['PHP32', ['OpenSSL']]];
foreach ($engines as $engine) {
try {
\phpseclib\Math\BigInteger::setEngine($engine[0], isset($engine[1]) ? $engine[1] : []);
break;
} catch (\Exception $e) {}
}
}
2017-10-05 17:54:27 +02:00
class BigIntegor
{
}