no_php_required.php 683 B

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