1*fd0855ecSAndreas Gohr<?php 2*fd0855ecSAndreas Gohr 3*fd0855ecSAndreas Gohr// platform_check.php @generated by Composer 4*fd0855ecSAndreas Gohr 5*fd0855ecSAndreas Gohr$issues = array(); 6*fd0855ecSAndreas Gohr 7*fd0855ecSAndreas Gohrif (!(PHP_VERSION_ID >= 70100)) { 8*fd0855ecSAndreas Gohr $issues[] = 'Your Composer dependencies require a PHP version ">= 7.1.0". You are running ' . PHP_VERSION . '.'; 9*fd0855ecSAndreas Gohr} 10*fd0855ecSAndreas Gohr 11*fd0855ecSAndreas Gohrif ($issues) { 12*fd0855ecSAndreas Gohr if (!headers_sent()) { 13*fd0855ecSAndreas Gohr header('HTTP/1.1 500 Internal Server Error'); 14*fd0855ecSAndreas Gohr } 15*fd0855ecSAndreas Gohr if (!ini_get('display_errors')) { 16*fd0855ecSAndreas Gohr if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { 17*fd0855ecSAndreas Gohr fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL); 18*fd0855ecSAndreas Gohr } elseif (!headers_sent()) { 19*fd0855ecSAndreas Gohr 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; 20*fd0855ecSAndreas Gohr } 21*fd0855ecSAndreas Gohr } 22*fd0855ecSAndreas Gohr trigger_error( 23*fd0855ecSAndreas Gohr 'Composer detected issues in your platform: ' . implode(' ', $issues), 24*fd0855ecSAndreas Gohr E_USER_ERROR 25*fd0855ecSAndreas Gohr ); 26*fd0855ecSAndreas Gohr} 27