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: apps/accessibility/composer/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') {
@@ -257,7 +257,7 @@ public static function getRootPackage()
257
257
*
258
258
* @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
Copy file name to clipboardExpand all lines: apps/admin_audit/composer/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') {
@@ -257,7 +257,7 @@ public static function getRootPackage()
257
257
*
258
258
* @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
Copy file name to clipboardExpand all lines: apps/cloud_federation_api/composer/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