Change PHP requirements
This commit is contained in:
parent
03c380217a
commit
4bf0e61cc4
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// PHP 5.3 minimum
|
// PHP 5.3 minimum
|
||||||
if (version_compare(PHP_VERSION, '5.3.7', '<')) {
|
if (version_compare(PHP_VERSION, '5.3.3', '<')) {
|
||||||
die('This software require PHP 5.3.7 minimum');
|
die('This software require PHP 5.3.3 minimum');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Short tags must be enabled for PHP < 5.4
|
// Short tags must be enabled for PHP < 5.4
|
||||||
|
|
@ -13,11 +13,16 @@ if (version_compare(PHP_VERSION, '5.4.0', '<')) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check PDO Sqlite
|
// Check extension: PDO Sqlite
|
||||||
if (! extension_loaded('pdo_sqlite')) {
|
if (! extension_loaded('pdo_sqlite')) {
|
||||||
die('PHP extension required: pdo_sqlite');
|
die('PHP extension required: pdo_sqlite');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check extension: mbstring
|
||||||
|
if (! extension_loaded('mbstring')) {
|
||||||
|
die('PHP extension required: mbstring');
|
||||||
|
}
|
||||||
|
|
||||||
// Check if /data is writeable
|
// Check if /data is writeable
|
||||||
if (! is_writable('data')) {
|
if (! is_writable('data')) {
|
||||||
die('The directory "data" must be writeable by your web server user');
|
die('The directory "data" must be writeable by your web server user');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue