mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 12:34:47 -04:00
Add safety check on PHP options lookup.
This commit is contained in:
parent
6ad53ec2aa
commit
509074c263
6 changed files with 26 additions and 23 deletions
|
@ -41,7 +41,7 @@ class Bootstrap {
|
|||
|
||||
// PHP
|
||||
define("MIN_PHP_VERSION", "5.4.0");
|
||||
define("HAS_PHP_VERSION", version_compare(PHP_VERSION, MIN_PHP_VERSION) >= 0);
|
||||
define("HAS_MIN_PHP_VERSION", version_compare(PHP_VERSION, MIN_PHP_VERSION) >= 0);
|
||||
define("HAS_PHP_EXIF", function_exists("exif_thumbnail"));
|
||||
$has_php_jpg = false;
|
||||
if (function_exists("gd_info")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue