1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 19:41:55 +02:00

Fix up the tests a bit

The hash check shouldn't be mixed in with the version check, and we now
need JSON.
This commit is contained in:
Paul Arthur 2013-02-03 04:24:08 -05:00
parent 287ddc4345
commit 10d54c9f7f
3 changed files with 38 additions and 48 deletions

View file

@ -53,7 +53,10 @@ else {
// Verify that a few important but commonly disabled PHP functions exist and
// that we're on a usable version
if (!function_exists('hash') || !function_exists('inet_pton') || (floatval(phpversion()) < 5.3) || !class_exists('PDO')) {
if (!function_exists('json_encode') ||
!function_exists('hash') ||
(floatval(phpversion()) < 5.3) ||
!class_exists('PDO')) {
$link = $path . '/test.php';
}