mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-23 00:51:12 +01:00
Tell users to uninstall the psr extension
This commit is contained in:
parent
a3458d4a72
commit
6b4d9e2233
2
docs
2
docs
@ -1 +1 @@
|
|||||||
Subproject commit 61cdff1c445fd53456b63d33a6feac12e4023514
|
Subproject commit 1890b7b22da5060d5018c22a4c9deddf7e98ce40
|
@ -308,6 +308,9 @@ final class Magic
|
|||||||
throw Exception::extension($extension);
|
throw Exception::extension($extension);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (\extension_loaded('psr')) {
|
||||||
|
throw new Exception("Please uninstall the psr extension to use MadelineProto!");
|
||||||
|
}
|
||||||
self::$BIG_ENDIAN = \pack('L', 1) === \pack('N', 1);
|
self::$BIG_ENDIAN = \pack('L', 1) === \pack('N', 1);
|
||||||
self::$hasOpenssl = \extension_loaded('openssl');
|
self::$hasOpenssl = \extension_loaded('openssl');
|
||||||
self::$emojis = \json_decode(self::JSON_EMOJIS);
|
self::$emojis = \json_decode(self::JSON_EMOJIS);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user