From fe2f004cd990f739ce4b265ce2932b0e11b19f1e Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@madoka.volgo-balt.ru>
Date: Mon, 19 Mar 2012 21:23:59 +0400
Subject: [PATCH] add sanity check for hash() function

---
 include/sanity_check.php | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/sanity_check.php b/include/sanity_check.php
index 5c631574..d77be420 100644
--- a/include/sanity_check.php
+++ b/include/sanity_check.php
@@ -100,7 +100,11 @@
 		}
 
 		if (!function_exists("mb_strlen")) {
-			$err_msg = "PHP support for mbstring functions is required, but was not found.";
+			$err_msg = "PHP support for mbstring functions is required but was not found.";
+		}
+
+		if (!function_exists("hash")) {
+			$err_msg = "PHP support for hash() function is required but was not found.";
 		}
 
 		if (!function_exists("ctype_lower")) {
-- 
2.39.5