]> git.wh0rd.org Git - tt-rss.git/commitdiff
add sanity check for hash() function
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 19 Mar 2012 17:23:59 +0000 (21:23 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 19 Mar 2012 17:23:59 +0000 (21:23 +0400)
include/sanity_check.php

index 5c631574decf02b8b5f6444cb4d4ae1a578ac965..d77be4201943769fee4aed3d1d2eb509d6210403 100644 (file)
                }
 
                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")) {