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:
@@ -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:
|
||||
|
@@ -11,7 +11,7 @@
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.2.0"
|
||||
"php": ">=5.4.4"
|
||||
},
|
||||
"require-dev": {
|
||||
"tracy/tracy": "~2.2",
|
||||
|
@@ -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
|
||||
|
@@ -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.');
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user