aboutsummaryrefslogtreecommitdiffhomepage
path: root/check_essentials.php
diff options
context:
space:
mode:
authortcit <tcit@tcit.fr>2014-09-27 17:54:13 +0200
committertcit <tcit@tcit.fr>2014-09-27 17:54:13 +0200
commit04a7674bdd20f2f24b32de69c086ecffdf20ceb4 (patch)
treebcc26634c68a8689ad511513c316058647e90789 /check_essentials.php
parent657245dcbdbca323621952d2b6f9e991dd94fa03 (diff)
parenta15108e65b12ceaf50821783bcaa1ee3fee10d13 (diff)
downloadwallabag-04a7674bdd20f2f24b32de69c086ecffdf20ceb4.tar.gz
wallabag-04a7674bdd20f2f24b32de69c086ecffdf20ceb4.tar.zst
wallabag-04a7674bdd20f2f24b32de69c086ecffdf20ceb4.zip
merge refactor and dev
Diffstat (limited to 'check_essentials.php')
-rw-r--r--check_essentials.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/check_essentials.php b/check_essentials.php
new file mode 100644
index 00000000..a47cd5a8
--- /dev/null
+++ b/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