mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-03 10:58:50 +03:00
Polyfill ctype #1250
This commit is contained in:
parent
34106c937e
commit
382ccdb499
3 changed files with 22 additions and 2 deletions
|
|
@ -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__));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue