summaryrefslogtreecommitdiffstats
path: root/lib/debug.lib.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/debug.lib.php')
-rw-r--r--lib/debug.lib.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/debug.lib.php b/lib/debug.lib.php
index 3459609c..1c0f9270 100644
--- a/lib/debug.lib.php
+++ b/lib/debug.lib.php
@@ -76,10 +76,18 @@ function check_database_inserted($dbh,$db_name) {
*/
function check_php_ver($level=0) {
- if (strcmp('5.1.0',phpversion()) > 0) {
+ if (strcmp('5.1.2',phpversion()) > 0) {
return false;
}
+ // Make sure that they have the sha256() algo installed
+ if (!function_exists('hash_algos')) { return false; }
+ $algos = hash_algos();
+
+ if (!in_array('sha256',$algos)) {
+ return false;
+ }
+
return true;
} // check_php_ver