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:
parent
287ddc4345
commit
10d54c9f7f
3 changed files with 38 additions and 48 deletions
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue