mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-06 03:49:56 +02:00
tweak the version checking to account for gentoo hippies (it is also a better way of doing it)
This commit is contained in:
parent
d7f8af4f53
commit
8a0f5b1cc7
1 changed files with 2 additions and 2 deletions
|
@ -27,11 +27,11 @@ $svn_version = 'Subversion ' . trim('$Rev$','$ ');
|
|||
ob_start();
|
||||
|
||||
// Do a check for PHP5 because nothing will work without it
|
||||
if (strcmp('5.0.0',phpversion()) > 0) {
|
||||
if (floatval(phpversion()) < 5) {
|
||||
echo "ERROR: Ampache requires PHP5";
|
||||
exit;
|
||||
}
|
||||
if (strtoupper(substr(PHP_OS,0,3)) == 'WIN' AND strcmp('5.3.0',phpversion()) > 0) {
|
||||
if (strtoupper(substr(PHP_OS,0,3)) == 'WIN' AND floatval(phpversion()) < 5.3) {
|
||||
echo "Error: Ampache Requires PHP5.3 when running on Windows";
|
||||
exit;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue