mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 07:18:57 +01:00
Throw exception if not running on 64 bit system
This commit is contained in:
parent
1611c0f8ec
commit
ba740d7be7
@ -6,7 +6,7 @@ Created by [Daniil Gentili](https://daniil.it), licensed under AGPLv3.
|
||||
|
||||
PHP implementation of MTProto, based on [telepy](https://github.com/griganton/telepy_old).
|
||||
|
||||
This project can run on PHP 7, PHP 5.6 and HHVM.
|
||||
This project can run on PHP 7, PHP 5.6 and HHVM, only 64 bit systems are supported ATM.
|
||||
|
||||
Also note that MadelineProto will perform better if a big math extension like gmp o bcmath is installed.
|
||||
|
||||
|
@ -38,6 +38,11 @@ class MTProto extends MTProtoTools
|
||||
|
||||
public function __construct($settings = [])
|
||||
{
|
||||
// Detect 64 bit
|
||||
if (PHP_INT_SIZE < 8) {
|
||||
throw new Exception('MadelineProto supports only 64 bit systems ATM');
|
||||
}
|
||||
|
||||
// Detect ipv6
|
||||
$google = '';
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user