1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-22 15:51:15 +01:00

Tell users to uninstall the psr extension

This commit is contained in:
Daniil Gentili 2023-09-06 22:26:45 +02:00
parent a3458d4a72
commit 6b4d9e2233
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 4 additions and 1 deletions

2
docs

@ -1 +1 @@
Subproject commit 61cdff1c445fd53456b63d33a6feac12e4023514
Subproject commit 1890b7b22da5060d5018c22a4c9deddf7e98ce40

View File

@ -308,6 +308,9 @@ final class Magic
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::$hasOpenssl = \extension_loaded('openssl');
self::$emojis = \json_decode(self::JSON_EMOJIS);