You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: autoload.php
+15-2Lines changed: 15 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,21 @@
3
3
// autoload.php @generated by Composer
4
4
5
5
if (PHP_VERSION_ID < 50600) {
6
-
echo'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
7
-
exit(1);
6
+
if (!headers_sent()) {
7
+
header('HTTP/1.1 500 Internal Server Error');
8
+
}
9
+
$err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
10
+
if (!ini_get('display_errors')) {
11
+
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
0 commit comments