summaryrefslogtreecommitdiffstats
path: root/lib/init.php
diff options
context:
space:
mode:
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