2020-10-28 15:31:11 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// platform_check.php @generated by Composer
|
|
|
|
|
|
|
|
$issues = array();
|
|
|
|
|
|
|
|
if (!(PHP_VERSION_ID >= 70205)) {
|
|
|
|
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.5". You are running ' . PHP_VERSION . '.';
|
|
|
|
}
|
|
|
|
|
|
|
|
$missingExtensions = array();
|
|
|
|
extension_loaded('ctype') || $missingExtensions[] = 'ctype';
|
|
|
|
extension_loaded('fileinfo') || $missingExtensions[] = 'fileinfo';
|
|
|
|
extension_loaded('filter') || $missingExtensions[] = 'filter';
|
2021-01-30 17:47:18 +08:00
|
|
|
extension_loaded('hash') || $missingExtensions[] = 'hash';
|
2020-10-28 15:31:11 +08:00
|
|
|
extension_loaded('json') || $missingExtensions[] = 'json';
|
|
|
|
extension_loaded('mbstring') || $missingExtensions[] = 'mbstring';
|
2021-05-10 13:59:58 +08:00
|
|
|
extension_loaded('pdo') || $missingExtensions[] = 'pdo';
|
2020-10-28 15:31:11 +08:00
|
|
|
|
|
|
|
if ($missingExtensions) {
|
|
|
|
$issues[] = 'Your Composer dependencies require the following PHP extensions to be installed: ' . implode(', ', $missingExtensions);
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($issues) {
|
|
|
|
echo 'Composer detected issues in your platform:' . "\n\n" . implode("\n", $issues);
|
|
|
|
exit(104);
|
|
|
|
}
|