summaryrefslogtreecommitdiffstats
path: root/lib/init.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-02-03 11:15:03 -0500
committerPaul Arthur <paul.arthur@flowerysong.com>2013-02-03 11:16:46 -0500
commitdd70337451390b260e95f998c8b79b9fefbf3b3a (patch)
tree4bfd3c3728841843badfadaca0920d4622c9f891 /lib/init.php
parentc8cd1da88fbf0df1a99463032d97ac42d221a774 (diff)
downloadampache-dd70337451390b260e95f998c8b79b9fefbf3b3a.tar.gz
ampache-dd70337451390b260e95f998c8b79b9fefbf3b3a.tar.bz2
ampache-dd70337451390b260e95f998c8b79b9fefbf3b3a.zip
Clean up PHP tests and reuse them in init.php
Also move the config-related functions out of debug.lib.php (why they were there in the first place is anyone's guess.)
Diffstat (limited to 'lib/init.php')
-rw-r--r--lib/init.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/init.php b/lib/init.php
index 672f945e..8a1aaf78 100644
--- a/lib/init.php
+++ b/lib/init.php
@@ -53,10 +53,7 @@ else {
// Verify that a few important but commonly disabled PHP functions exist and
// that we're on a usable version
-if (!function_exists('json_encode') ||
- !function_exists('hash') ||
- (floatval(phpversion()) < 5.3) ||
- !class_exists('PDO')) {
+if (!check_php()) {
$link = $path . '/test.php';
}