mirror of
https://github.com/dg/dibi.git
synced 2025-08-02 20:27:35 +02:00
Minimal required PHP version changed to 5.4.4
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
language: php
|
language: php
|
||||||
php:
|
php:
|
||||||
- 5.3.3
|
|
||||||
- 5.4
|
- 5.4
|
||||||
- 5.5
|
- 5.5
|
||||||
- 5.6
|
- 5.6
|
||||||
@@ -9,7 +8,6 @@ php:
|
|||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- php: 7.0
|
|
||||||
- php: hhvm
|
- php: hhvm
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.2.0"
|
"php": ">=5.4.4"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"tracy/tracy": "~2.2",
|
"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,
|
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.
|
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
|
Examples
|
||||||
|
@@ -6,11 +6,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
if (PHP_VERSION_ID < 50404) {
|
||||||
* Check PHP configuration.
|
throw new Exception('Dibi requires PHP 5.4.4 or newer.');
|
||||||
*/
|
|
||||||
if (version_compare(PHP_VERSION, '5.2.0', '<')) {
|
|
||||||
throw new Exception('dibi needs PHP 5.2.0 or newer.');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user