]> git.immae.eu Git - github/wallabag/wallabag.git/blame - check_essentials.php
Merge pull request #942 from wallabag/carrot
[github/wallabag/wallabag.git] / check_essentials.php
CommitLineData
9c67b1b8
MW
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}