diff --git a/snaphax.php b/snaphax.php index a0700d9..864edbf 100644 --- a/snaphax.php +++ b/snaphax.php @@ -40,6 +40,9 @@ if (!function_exists('json_decode')) { throw new Exception('Snaphax needs the JSON PHP extension.'); } + if (!function_exists('mcrypt_decrypt')) { + throw new Exception('Snaphax needs the mcrypt PHP extension.'); + } class Snaphax {