summaryrefslogtreecommitdiffstats
path: root/lib/init.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-02-07 03:54:36 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-02-07 03:54:36 +0000
commitd9e9eb462d6bcbef019d36f4175b5e26b453f1ea (patch)
tree48a3a6f03689893970ad0911630a2517762d536d /lib/init.php
parent25041fe678861921437f420fd0eed143922cda12 (diff)
downloadampache-d9e9eb462d6bcbef019d36f4175b5e26b453f1ea.tar.gz
ampache-d9e9eb462d6bcbef019d36f4175b5e26b453f1ea.tar.bz2
ampache-d9e9eb462d6bcbef019d36f4175b5e26b453f1ea.zip
add a check for Windows + PHP < 5.3 and update readme to reflect new requirements
Diffstat (limited to 'lib/init.php')
-rw-r--r--lib/init.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/init.php b/lib/init.php
index a6dd443b..57d5f243 100644
--- a/lib/init.php
+++ b/lib/init.php
@@ -31,6 +31,10 @@ if (strcmp('5.0.0',phpversion()) > 0) {
echo "ERROR: Ampache requires PHP5";
exit;
}
+if (strtoupper(substr(PHP_OS,0,3)) == 'WIN' AND strcmp('5.3.0',phpversion()) > 0) {
+ echo "Error: Ampache Requires PHP5.3 when running on Windows";
+ exit;
+}
error_reporting(E_ERROR); // Only show fatal errors in production