1
0
mirror of https://github.com/dg/dibi.git synced 2025-07-31 19:30:30 +02:00

Minimal required PHP version changed to 5.4.4

This commit is contained in:
David Grudl
2014-06-02 16:50:01 +02:00
parent cbebcba37d
commit 96daa02525
4 changed files with 4 additions and 9 deletions

View File

@@ -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:

View File

@@ -11,7 +11,7 @@
}
],
"require": {
"php": ">=5.2.0"
"php": ">=5.4.4"
},
"require-dev": {
"tracy/tracy": "~2.2",

View File

@@ -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

View File

@@ -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.');
}