diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-07-22 21:45:21 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-07-22 21:45:21 +0200 |
commit | ebd6bf6007e0fad4c3e11dac0e79f687e1d195a2 (patch) | |
tree | c24e74e85fc98ee7989f79707f7854eb60756279 /check_essentials.php | |
parent | f83ffc3ac3c843c17587827ad85f278818f69d78 (diff) | |
parent | 1f78bd8471661ece8b386996ed30fd56255a2280 (diff) | |
download | wallabag-ebd6bf6007e0fad4c3e11dac0e79f687e1d195a2.tar.gz wallabag-ebd6bf6007e0fad4c3e11dac0e79f687e1d195a2.tar.zst wallabag-ebd6bf6007e0fad4c3e11dac0e79f687e1d195a2.zip |
Merge branch 'anno1337-dev' into dev
Diffstat (limited to 'check_essentials.php')
-rw-r--r-- | check_essentials.php | 14 |
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 | ||
4 | if (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 | ||
9 | if (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 | ||