diff --git a/.travis.yml b/.travis.yml index 2b902714..07edc0b5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,5 @@ language: php php: - - 5.3.3 - 5.4 - 5.5 - 5.6 @@ -9,7 +8,6 @@ php: matrix: allow_failures: - - php: 7.0 - php: hhvm script: diff --git a/composer.json b/composer.json index 855ac2ab..c4a2e63e 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ } ], "require": { - "php": ">=5.2.0" + "php": ">=5.4.4" }, "require-dev": { "tracy/tracy": "~2.2", diff --git a/readme.md b/readme.md index cb6b440d..74acea8a 100644 --- a/readme.md +++ b/readme.md @@ -17,7 +17,7 @@ Or you can download the latest package from http://dibiphp.com. In this package is also `Dibi.minified`, shrinked single-file version of whole Dibi, useful when you don't want to modify the library, but just use it. -Dibi requires PHP 5.2.0 or later. It has been tested with PHP 5.5 too. +Dibi requires PHP 5.4.4 or later. It has been tested with PHP 7 too. Examples diff --git a/src/loader.php b/src/loader.php index 762911b2..6d1c6af9 100644 --- a/src/loader.php +++ b/src/loader.php @@ -6,11 +6,8 @@ */ -/** - * Check PHP configuration. - */ -if (version_compare(PHP_VERSION, '5.2.0', '<')) { - throw new Exception('dibi needs PHP 5.2.0 or newer.'); +if (PHP_VERSION_ID < 50404) { + throw new Exception('Dibi requires PHP 5.4.4 or newer.'); }