From 7d61392bfd7d5845f4b40d00d9b14a2126265220 Mon Sep 17 00:00:00 2001 From: Thomas Lackner Date: Mon, 31 Dec 2012 15:06:58 -0600 Subject: [PATCH] check for mcrypt_decrypt --- snaphax.php | 3 +++ 1 file changed, 3 insertions(+) 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 {