Polyfill ctype #1250

This commit is contained in:
the-djmaze 2024-03-04 19:46:12 +01:00
parent 34106c937e
commit 382ccdb499
3 changed files with 22 additions and 2 deletions

View file

@ -4,10 +4,14 @@ if (defined('APP_VERSION_ROOT_PATH')) {
}
// PHP 8
if (\PHP_VERSION_ID < 80000) {
if (PHP_VERSION_ID < 80000) {
require __DIR__ . '/app/libraries/polyfill/php8.php';
}
if (!extension_loaded('ctype')) {
require __DIR__ . '/app/libraries/polyfill/ctype.php';
}
if (!defined('APP_VERSION')) {
define('APP_VERSION', basename(__DIR__));
}