aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/check_essentials.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-20 07:40:39 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-20 07:40:39 +0100
commit6ad93dff69d7c2beb2196e73f641e6484fccbeb7 (patch)
tree12430b858be2a41029fc11d1afa1fa2a120b96f9 /app/check_essentials.php
parentc78c1a3f08815aab99752026ccdf1dcf63cf43c1 (diff)
downloadwallabag-6ad93dff69d7c2beb2196e73f641e6484fccbeb7.tar.gz
wallabag-6ad93dff69d7c2beb2196e73f641e6484fccbeb7.tar.zst
wallabag-6ad93dff69d7c2beb2196e73f641e6484fccbeb7.zip
new folders
Diffstat (limited to 'app/check_essentials.php')
-rw-r--r--app/check_essentials.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/check_essentials.php b/app/check_essentials.php
new file mode 100644
index 00000000..a47cd5a8
--- /dev/null
+++ b/app/check_essentials.php
@@ -0,0 +1,14 @@
1<?php
2
3// PHP 5.3 minimum
4if (version_compare(PHP_VERSION, '5.3.3', '<')) {
5 die('This software require PHP 5.3.3 minimum');
6}
7
8// Short tags must be enabled for PHP < 5.4
9if (version_compare(PHP_VERSION, '5.4.0', '<')) {
10
11 if (! ini_get('short_open_tag')) {
12 die('This software require to have short tags enabled, check your php.ini => "short_open_tag = On"');
13 }
14} \ No newline at end of file