aboutsummaryrefslogtreecommitdiffhomepage
path: root/check_essentials.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2014-07-23 13:42:30 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2014-07-23 13:42:30 +0200
commit505a74ad1de7cf2cd3605e793233365501f03d87 (patch)
tree41206132200aa9390e11d600ad2b84ffa23242e4 /check_essentials.php
parenta818ff2000c721c6f078c206c3f5214c558a5546 (diff)
parentebd6bf6007e0fad4c3e11dac0e79f687e1d195a2 (diff)
downloadwallabag-505a74ad1de7cf2cd3605e793233365501f03d87.tar.gz
wallabag-505a74ad1de7cf2cd3605e793233365501f03d87.tar.zst
wallabag-505a74ad1de7cf2cd3605e793233365501f03d87.zip
Merge branch 'dev' into refactor
Conflicts: check_setup.php index.php
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