diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-02-03 04:24:08 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-02-03 04:34:57 -0500 |
commit | 10d54c9f7fd0b15b64a0474c6f33b63caabc4d03 (patch) | |
tree | b6e372a8b1d123ccb4408611cf8638ab87865c52 /lib/debug.lib.php | |
parent | 287ddc4345a88997f066bf9f8b78410b30b7bf4a (diff) | |
download | ampache-10d54c9f7fd0b15b64a0474c6f33b63caabc4d03.tar.gz ampache-10d54c9f7fd0b15b64a0474c6f33b63caabc4d03.tar.bz2 ampache-10d54c9f7fd0b15b64a0474c6f33b63caabc4d03.zip |
Fix up the tests a bit
The hash check shouldn't be mixed in with the version check, and we now
need JSON.
Diffstat (limited to 'lib/debug.lib.php')
-rw-r--r-- | lib/debug.lib.php | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/lib/debug.lib.php b/lib/debug.lib.php index f96c9ffa..d3fa035b 100644 --- a/lib/debug.lib.php +++ b/lib/debug.lib.php @@ -26,22 +26,11 @@ * sure that it's good enough */ function check_php_ver($level=0) { - if (floatval(phpversion()) < 5.3) { 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 +} /** * check_php_session @@ -59,21 +48,6 @@ function check_php_session() { } // check_php_session /** - * check_php_pcre - * This makes sure they have pcre (preg_???) support - * compiled into PHP this is required! - */ -function check_php_pcre() { - - if (!function_exists('preg_match')) { - return false; - } - - return true; - -} // check_php_pcre - -/** * check_pdo * * Checks to make sure that PDO is available. |