選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

platform_check.php 771B

12345678910111213141516171819202122
  1. <?php
  2. // platform_check.php @generated by Composer
  3. $issues = array();
  4. if ($issues) {
  5. if (!headers_sent()) {
  6. header('HTTP/1.1 500 Internal Server Error');
  7. }
  8. if (!ini_get('display_errors')) {
  9. if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
  10. fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL);
  11. } elseif (!headers_sent()) {
  12. echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL;
  13. }
  14. }
  15. trigger_error(
  16. 'Composer detected issues in your platform: ' . implode(' ', $issues),
  17. E_USER_ERROR
  18. );
  19. }