typical.php 703 B

12345678910111213141516171819202122
  1. <?php
  2. // platform_check.php @generated by Composer
  3. $issues = array();
  4. if (!(PHP_VERSION_ID >= 70200 && PHP_VERSION_ID < 80000)) {
  5. $issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.0" and "< 8.0.0". You are running ' . PHP_VERSION . '.';
  6. }
  7. $missingExtensions = array();
  8. extension_loaded('json') || $missingExtensions[] = 'json';
  9. extension_loaded('xml') || $missingExtensions[] = 'xml';
  10. if ($missingExtensions) {
  11. $issues[] = 'Your Composer dependencies require the following PHP extensions to be installed: ' . implode(', ', $missingExtensions);
  12. }
  13. if ($issues) {
  14. echo 'Composer detected issues in your platform:' . "\n\n" . implode("\n", $issues);
  15. exit(104);
  16. }